Dimension (JComponent c, Dimension prefSize) { Dimension size = super.getDarculaButtonSize(c, prefSize); if (!(c instanceof ComboBoxAction.ComboBoxButton)) return size; AbstractButton button = (AbstractButton)c; if (((ComboBoxAction.ComboBoxButton)c).isArrowVisible()) size.width += ((AbstractButton)c).getIconTextGap() + EXPAND_ICON.getIconWidth(); JBInsets.addTo(size, button.getMargin()); size.height = Integer.min(size.height, JBUI.CurrentTheme.Toolbar.experimentalToolbarButtonSize().height); return size; }