private void repaintParentScrollPane() {
      if (component.getParent() instanceof JViewport viewport && viewport.getParent() instanceof JBScrollPane scrollPane) {
        scrollPane.repaint();
      }
    }
private void repaintParentScrollPane()