boolean (int start, int end, @NotNull Processor<? super RangeHighlighterEx> processor) { MarkupIterator<RangeHighlighterEx> iterator = overlappingIterator(start, end); try { while (iterator.hasNext()) { if (!processor.process(iterator.next())) { return false; } } return true; } finally { iterator.dispose(); } }