int (int originHeight) { JComponent component = getComponent(); Insets insets = component.getInsets(); return isCompact(component) ? originHeight : MINIMUM_HEIGHT.get() + insets.top + insets.bottom; }