Iterable<TextRange> (@NotNull String pattern, @NotNull String text) { int index = StringUtil.indexOfIgnoreCase(text, pattern, 0); return index >= 0 ? Collections.singleton(TextRange.from(index, pattern.length())) : null; }