protected void visitInherited(boolean allowContent,
                                  QueryProfileVisitor visitor,
                                  DimensionBinding dimensionBinding,
                                  QueryProfile owner) {
        if (inherited == null) return;
        for (QueryProfile inheritedProfile : inherited) {
            inheritedProfile.accept(allowContent,
                                    visitor,
                                    dimensionBinding.createFor(inheritedProfile.getDimensions()),
                                    owner);
            if (visitor.isDone()) return;
        }
    }
Visit the profiles and values referenced from this in order of decreasing precedence

@param allowContent whether content in this should be visited
@param visitor the visitor
@param dimensionBinding the dimension binding to use
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfile.java