Insets (Component c, final Insets insets) { insets.top += getTitledSeparator(c).getPreferredSize().getHeight() - TitledSeparator.TOP_INSET - TitledSeparator.BOTTOM_INSET; insets.top += myShowLine ? UIUtil.DEFAULT_VGAP : 0; insets.top += insideInsets.top; insets.left += insideInsets.left; insets.bottom += insideInsets.bottom; insets.right += insideInsets.right; insets.top += outsideInsets.top; insets.left += outsideInsets.left; insets.bottom += outsideInsets.bottom; insets.right += outsideInsets.right; return insets; }