public FieldDescription getField(String localName) {
        FieldDescription field = fields.get(localName);
        if ( field != null ) return field;

        if ( isFrozen() ) return null; // Inherited are collapsed into this

        for (QueryProfileType inheritedType : this.inherited() ) {
            field = inheritedType.getField(localName);
            if (field != null) return field;
        }

        return null;
    }
Returns the description of the field with the given name in this type or an inherited type
(depth first left to right search). Returns null if the field is not defined in this or an inherited profile.
container-search/src/main/java/com/yahoo/search/query/profile/types/QueryProfileType.java