void (JComponent c, Dimension size) { if (!isUnderComboBox(c)) { JBInsets.addTo(size, getDefaultMargins()); size.width += icons.values().stream().mapToInt(h -> h.extension.getPreferredSpace()).sum(); size.height = Math.max(size.height, getMinimumHeight(size.height)); size.width = Math.max(size.width, DarculaUIUtil.MINIMUM_WIDTH.get()); } }