@Override
      public Insets getBorderInsets(Component c) {
        return myGearLabel.getIcon() == null && (myCloseButton == null || !myCloseButton.isVisible())
               ? super.getBorderInsets(c) : new JBInsets(0, 16, 0, 0);
      }
@Override
      public Insets getBorderInsets(Component c)