private static @NotNull RangeHighlighter createHighlighter(MarkupModel mm, @NotNull TextRange range, Color color) {
    RangeHighlighter highlighter =
      mm.addRangeHighlighter(null, range.getStartOffset(), range.getEndOffset(), 0, HighlighterTargetArea.LINES_IN_RANGE);

    highlighter.setLineMarkerRenderer((__, g, r) -> {
      g.setColor(color);
      g.fillRect(r.x - 1, r.y, 2, r.height);
    });
    return highlighter;
  }
private static @NotNull RangeHighlighter createHighlighter(MarkupModel mm, @NotNull TextRange range, Color color)