@Override
  public void paintTicks(Graphics g) {
    ticksColor = UIManager.getColor(slider.isEnabled() ? "Button.intellij.native.borderColor" : "Slider.disabledForeground");
    super.paintTicks(g);
  }
@Override
  public void paintTicks(Graphics g)