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

        NamedType other = (NamedType) o;

        return Objects.equals(this.name, other.name) &&
                Objects.equals(this.type, other.type);
    }