int (@NotNull SimpleColoredComponent component) { Insets borderInsets = component.getMyBorder().getBorderInsets(component); Insets ipad = component.getIpad(); return borderInsets.left + borderInsets.right + ipad.left + ipad.right; }