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