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