final void accept(boolean allowContent,
                      QueryProfileVisitor visitor,
                      DimensionBinding dimensionBinding,
                      QueryProfile owner) {
        visitor.onQueryProfile(this, dimensionBinding, owner, null);
        if (visitor.isDone()) return;

        visitVariants(allowContent, visitor, dimensionBinding);
        if (visitor.isDone()) return;

        if (allowContent) {
            visitContent(visitor, dimensionBinding);
            if (visitor.isDone()) return;
        }

        if (visitor.visitInherited())
            visitInherited(allowContent, visitor, dimensionBinding, owner);
    }
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