@Override
  protected Dimension getDarculaButtonSize(JComponent c, Dimension prefSize) {
    if (!(c instanceof ComboBoxAction.ComboBoxButton button)) return prefSize;

    Dimension buttonSize = super.getDarculaButtonSize(c, prefSize);
    Insets i = button.getInsets();
    int width = buttonSize.width + (StringUtil.isNotEmpty(button.getText()) ? button.getIconTextGap() : 0) +
                (!button.isArrowVisible() ? 0 : JBUIScale.scale(16));

    int height = ActionToolbar.DEFAULT_MINIMUM_BUTTON_SIZE.height + i.top + i.bottom;
    if (!button.isSmallVariant()) {
      height = Math.max(height, buttonSize.height);
    }
    Dimension size = new Dimension(width, height);
    JBInsets.addTo(size, button.getMargin());
    return size;
  }
@Override
  protected Dimension getDarculaButtonSize(JComponent c, Dimension prefSize)