@Override
  public void installUI(JComponent c) {
    super.installUI(c);
    Object clientProperty = UIUtil.getTabbedPanePaintContentBorder(c);
    if (clientProperty instanceof Boolean aBoolean) {
      myPaintContentBorder = aBoolean.booleanValue();
    }
  }
@Override
  public void installUI(JComponent c)