boolean (Editor editor, Project project, @NotNull Processor<? super GutterMark> processor) { int offset = editor.getCaretModel().getOffset(); RangeHighlighter[] highlighters = DocumentMarkupModel.forDocument(editor.getDocument(), project, true).getAllHighlighters(); for (RangeHighlighter highlighter : highlighters) { GutterMark renderer = highlighter.getGutterIconRenderer(); if (renderer != null && editor.getDocument().getLineNumber(offset) == editor.getDocument().getLineNumber(highlighter.getStartOffset()) && !processor.process(renderer)) { return false; } } return true; }