private static @Nullable Color getIndentColor(Editor editor, int startOffset, boolean selected, boolean stickyPainting) {
    EditorColorsScheme scheme = editor.getColorsScheme();
    if (ExperimentalUI.isNewUI()) {
      List<RangeHighlighter> highlighters = ContainerUtil.filter(editor.getMarkupModel().getAllHighlighters(),
                                                                 x -> x.getLineMarkerRenderer() instanceof DefaultLineMarkerRenderer);
      for (RangeHighlighter highlighter : highlighters) {
        DefaultLineMarkerRenderer renderer = (DefaultLineMarkerRenderer)highlighter.getLineMarkerRenderer();
        assert renderer != null;
        if (editor.offsetToVisualLine(startOffset, false) == editor.offsetToVisualLine(highlighter.getStartOffset(), false)) {
          Color color = renderer.getColor();
          if (color != null) {
            Color matched = scheme.getColor(EditorColors.MATCHED_BRACES_INDENT_GUIDE_COLOR);
            return ObjectUtils.notNull(matched, color);
          }
        }
      }
    }
    if (!selected && stickyPainting) {
      // suppress indent vertical lines on sticky lines panel
      return null;
    }
    return scheme.getColor(selected ? EditorColors.SELECTED_INDENT_GUIDE_COLOR : EditorColors.INDENT_GUIDE_COLOR);
  }
private static @Nullable Color getIndentColor(Editor editor, int startOffset, boolean selected, boolean stickyPainting)