void (@Nullable String text, @NotNull TextRange range, Consumer<TextRange> consumer) { if (text == null || StringUtil.isEmpty(text)) { return; } List<TextRange> toCheck = excludeByPattern(text, range, HTML, 2); final Splitter ps = PlainTextSplitter.getInstance(); for (TextRange r : toCheck) { ps.split(text, r, consumer); } }