private static Object parseValue( String key, String value )
		throws IllegalArgumentException
	{
		// simple reference
		if( value.startsWith( "$" ) )
			return UIManager.get( value.substring( 1 ) );

		// remove key prefix for correct value type detection
		// (e.g. "[light]padding" would not parse to Insets)
		if( key.startsWith( "[" ) )
			key = key.substring( key.indexOf( ']' ) + 1 );

		// parse string
		return FlatLaf.parseDefaultsValue( key, value, null );
	}
Parses styles in CSS syntax ("key1: value1; key2: value2; ..."),
converts the value strings into binary and returns all key/value pairs as map.

@param style the style in CSS syntax, or {@code null}
@return map of parsed styles, or {@code null}
@throws IllegalArgumentException on syntax errors
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatStylingSupport.java