@Override
  protected void calculateTickRect() {
    super.calculateTickRect();
    if (slider.getOrientation() == SwingConstants.HORIZONTAL) {
      tickRect.y -= JBUIScale.scale(5);
    }
    else {
      if (slider.getComponentOrientation().isLeftToRight()) {
        tickRect.x -= JBUIScale.scale(5);
      }
      else {
        tickRect.x = trackRect.x + JBUIScale.scale(5);
      }
    }
  }
@Override
  protected void calculateTickRect()