// needs Snippets DB v2 (#1016872) with withTexts=true static LS dm_snippetIDsWhereTextMatches(IPred pred) { new LS out; for (O snippet : dm_allSnippets()) { S text = cast call(snippet, 'text); if (isTrue_callF(pred, text)) out.add((S) call(snippet, 'snippetID)); } ret out; }