public static Rectangle subtractInsets( Rectangle r, Insets insets ) {
		return new Rectangle(
			r.x + insets.left,
			r.y + insets.top,
			r.width - insets.left - insets.right,
			r.height - insets.top - insets.bottom );
	}
Utility methods for UI delegates.

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