ErrorStripeMarkerImpl (@NotNull RangeHighlighterEx highlighter, boolean lookEverywhere) { TextRange range = lookEverywhere ? new ProperTextRange(0, myEditor.getDocument().getTextLength()) : highlighter.getTextRange(); MarkupIterator<ErrorStripeMarkerImpl> iterator = treeFor(highlighter).overlappingIterator(range); try { return ContainerUtil.find(iterator, marker -> marker.getHighlighter() == highlighter); } finally { iterator.dispose(); } }