private boolean equals(Object o1, Object o2) {
        if (o1 == null) return o2 == null;
        return o1.equals(o2);
    }
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