@Override
  public Dimension getPreferredSize() {
    Dimension size = super.getPreferredSize();
    int iconsGap = JBUI.scale(ICONS_GAP);
    if (!isPreferredSizeSet() && isToDrawCombo()) {
      if (hasActiveIcons()) size.width -= iconsGap;
      myComboIconPoint.x = size.width;
      size.width += myComboIcon.getIconWidth();
    }

    if (ExperimentalUI.isNewUI()) {
      if (myLayout.shouldShowId()) {
        myBorder.setBorderInsets(0, JBUI.CurrentTheme.ToolWindow.headerTabLeftRightInsets().left, 0, iconsGap);
      }
      else {
        myBorder.setBorderInsets(0, JBUI.CurrentTheme.ToolWindow.headerLabelLeftRightInsets().left, 0, iconsGap);
      }
    }

    return size;
  }
@Override
  public Dimension getPreferredSize()