presto-main/src/main/java/io/prestosql/operator/scalar/ColorFunctions.java/ColorFunctions/getRed
class ColorFunctions:    @VisibleForTesting
    static int getRed(long color)
    {
        checkCondition(color >= 0, INVALID_FUNCTION_ARGUMENT, "color is not a valid rgb value");

        return (int) ((color >>> 16) & 0xff);
    }