presto-parser/src/main/java/io/prestosql/sql/tree/GrantorSpecification.java/GrantorSpecification/equals
class GrantorSpecification:    @Override
    public boolean equals(Object o)
    {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        GrantorSpecification that = (GrantorSpecification) o;
        return type == that.type &&
                Objects.equals(principal, that.principal);
    }