static void runWithLightAWTPeerUIDefaults( Runnable runnable ) {
		if( lightAWTPeerDefaults == null ) {
			FlatLaf lightLaf = UIManager.getInt( "Component.focusWidth" ) >= 2
				? new FlatIntelliJLaf()
				: new FlatLightLaf();
			lightAWTPeerDefaults = lightLaf.getDefaults();
		}

		FlatLaf.runWithUIDefaultsGetter( key -> {
			Object value = lightAWTPeerDefaults.get( key );
			return (value != null) ? value : FlatLaf.NULL_VALUE;
		}, runnable );
	}
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