presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/HivePrivilegeInfo.java/HivePrivilegeInfo/isContainedIn
class HivePrivilegeInfo:    public boolean isContainedIn(HivePrivilegeInfo hivePrivilegeInfo)
    {
        return (getHivePrivilege().equals(hivePrivilegeInfo.getHivePrivilege()) &&
                (isGrantOption() == hivePrivilegeInfo.isGrantOption() ||
                        (!isGrantOption() && hivePrivilegeInfo.isGrantOption())));
    }