private Color resolveDerivedColor( UIDefaults defaults, String key, Color color, Color[] pBaseColor ) {
		if( pBaseColor != null )
			pBaseColor[0] = null;

		if( !(color instanceof DerivedColor) )
			return color;

		if( derivedColorKeys == null )
			derivedColorKeys = loadDerivedColorKeys();

		Object baseKey = derivedColorKeys.get( key );
		if( baseKey == null )
			return color;

		// this is for keys that may be defined as derived colors, but do not derive them at runtime
		if( "null".equals( baseKey ) )
			return color;

		Color baseColor = defaults.getColor( baseKey );
		if( baseColor == null )
			return color;

		if( baseColor instanceof DerivedColor )
			baseColor = resolveDerivedColor( defaults, (String) baseKey, baseColor, null );

		if( pBaseColor != null )
			pBaseColor[0] = baseColor;

		Color newColor = FlatUIUtils.deriveColor( color, baseColor );

		// creating a new color instance to drop Color.frgbvalue from newColor
		// and avoid rounding issues/differences
		return new Color( newColor.getRGB(), true );
	}
Creates a UI defaults inspector panel that can be embedded into any window.
flatlaf-extras/src/main/java/com/formdev/flatlaf/extras/FlatUIDefaultsInspector.java