private void addNearestHighlighters(@NotNull MarkupModelEx markupModel,
                                      int scrollBarY,
                                      @NotNull Collection<? super RangeHighlighter> result) {
    int startOffset = yPositionToOffset(scrollBarY - getMinMarkHeight(), true);
    int endOffset = yPositionToOffset(scrollBarY + getMinMarkHeight(), false);
    markupModel.processRangeHighlightersOverlappingWith(startOffset, endOffset, highlighter -> {
      if (highlighter.getErrorStripeMarkColor(myEditor.getColorsScheme()) != null) {
        ProperTextRange range = offsetsToYPositions(highlighter.getStartOffset(), highlighter.getEndOffset());
        if (scrollBarY >= range.getStartOffset() - getMinMarkHeight() * 2 &&
            scrollBarY <= range.getEndOffset() + getMinMarkHeight() * 2) {
          result.add(highlighter);
        }
      }
      return true;
    });
  }
private void addNearestHighlighters(@NotNull MarkupModelEx markupModel,
                                      int scrollBarY,
                                      @NotNull Collection<? super RangeHighlighter> result)