static boolean needsLightAWTPeer( JComponent c ) {
		return FlatUIUtils.isAWTPeer( c ) && FlatLaf.isLafDark();
	}
Checks whether component is used as peer for AWT (on macOS) and
whether a dark FlatLaf theme is active, which requires special handling
because AWT always uses light colors.
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatUIUtils.java