presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrivilegeInfo.java/HivePrivilegeInfo/toHivePrivilege
class HivePrivilegeInfo:    public static HivePrivilege toHivePrivilege(Privilege privilege)
    {
        switch (privilege) {
            case SELECT:
                return SELECT;
            case INSERT:
                return INSERT;
            case DELETE:
                return DELETE;
            case UPDATE:
                return UPDATE;
            default:
                throw new IllegalArgumentException("Unexpected privilege: " + privilege);
        }
    }