private @Nullable TextAttributes getSelectionAttributes(boolean isInSelection) {
    if (myEditor instanceof EditorImpl editor) {
      if (editor.isStickyLinePainting()) {
        // suppress caret selection on sticky lines panel
        return null;
      }
    }
    return isInSelection ? mySelectionAttributes : null;
  }
private @Nullable TextAttributes getSelectionAttributes(boolean isInSelection)