static boolean hasDefaultMargins( JComponent c, Insets defaultMargin ) {
		Insets margin = ((JTextComponent)c).getMargin();
		return margin instanceof UIResource && Objects.equals( margin, defaultMargin );
	}
Paints the leading and trailing icons in the given rectangle.
The rectangle is updated by this method so that subclasses can use it
without painting over leading or trailing icons.

@since 2
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java