@Override
	public Insets getBorderInsets( Component c, Insets insets ) {
		insets = super.getBorderInsets( c, insets );
		insets.top = scale( insets.top + top );
		insets.left = scale( insets.left + left );
		insets.bottom = scale( insets.bottom + bottom );
		insets.right = scale( insets.right + right );
		return insets;
	}
Border that scales component margin.

@author Karl Tauber
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatMarginBorder.java