public final class Main {

    public static void main (String[] args) {
        var yellow = Color.findByName("YELLOW");
		// Since 'yellow' can be null, the next statement may throw a
		// NullPointerException.
        var rgb = yellow.getRgb();
    }

    public interface Color {

        /**
	        Returns the Color instance that matches with the specified name.

            @param name
                ...
            @return
	            {@code null} if nothing matches with {@code name}.
	            Otherwise, the instance that matches.
        */
        static Color findByName(String name) {
            return null;
        }

        /**
	        Returns the 24-bit integer value representing RGB.

            @return
                ...
        */
        int getRgb();
    }
}
