void (int startOffset, int endOffset, @NotNull Editor editor, @NotNull Processor<? super RangeHighlighter> processor) { MarkupModelEx markupModel = (MarkupModelEx)editor.getMarkupModel(); markupModel.processRangeHighlightersOverlappingWith(startOffset, endOffset, new FilteringProcessor<>(rangeHighlighterEx -> rangeHighlighterEx.isValid() && getHyperlinkInfo(rangeHighlighterEx) != null, processor) ); }