@Override
    public boolean equals(Object o) {
        if (o == this) return true;
        if ( ! (o instanceof QueryProfileFieldType other)) return false;
        return equals(this.type.getId(), other.type.getId());
    }
Returns the query profile type of this, or null if any type works
container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileFieldType.java