Insets () { Insets insets = getInsideFrameInsets(); add(insets, getFrameInsets()); //noinspection UseDPIAwareInsets return new Insets(JBUIScale.scale(TOP_INSET) - insets.top, insets.left + 1, // RoundedLineBorder is a little clipped near edges, reserve additional space JBUIScale.scale(BOTTOM_INSET) - insets.bottom, SEPARATOR_LEFT_INSET - insets.right); }