final void acceptValue(String key,
                           Object value,
                           DimensionBinding dimensionBinding,
                           QueryProfile owner,
                           DimensionValues variant) {
        if (value == null) return;
        if (value instanceof QueryProfile) {
            QueryProfile queryProfileValue = (QueryProfile)value;
            queryProfileValue.acceptAndEnter(key, this, dimensionBinding.createFor(queryProfileValue.getDimensions()), owner);
        }
        else {
            onValue(key, value, dimensionBinding, owner, variant);
        }
    }
Calls onValue or onQueryProfile on this and visits the content if it's a profile

@param variant the variant having this value, or null if it is not in a variant
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVisitor.java