presto-main/src/main/java/io/prestosql/operator/scalar/ColorFunctions.java/SystemColor/valueOf
class SystemColor:        public static SystemColor valueOf(int index)
        {
            for (SystemColor color : values()) {
                if (index == color.getIndex()) {
                    return color;
                }
            }
            throw new PrestoException(GENERIC_INTERNAL_ERROR, "Invalid color index: " + index);
        }