boolean (@NotNull List<String> words, boolean caseSensitive, @NotNull FileContent content) { Map<IdIndexEntry, Integer> idIndexData = PlainTextIdIndexer.getIdIndexData(content); return words.stream().allMatch(word -> idIndexData.containsKey(new IdIndexEntry(word, caseSensitive))); }