Dimension (@Nullable JComboBox comboBox) { Insets i = comboBox != null ? comboBox.getInsets() : getDefaultComboBoxInsets(); int height = (isCompact(comboBox) ? COMPACT_HEIGHT.get() : MINIMUM_HEIGHT.get()) + i.top + i.bottom; return new Dimension(ARROW_BUTTON_WIDTH.get() + i.left, height); }