private static Object parseColorOrFunction( String value, Function<String, String> resolver )
		throws IllegalArgumentException
	{
		if( value.endsWith( ")" ) )
			return parseColorFunctions( value, resolver );

		return parseColor( value );
	}
Similar to Class.getSimpleName(), but includes enclosing class for nested classes.
flatlaf-core/src/main/java/com/formdev/flatlaf/UIDefaultsLoader.java