public void inherit(QueryProfile profile) {
        if (inherited == null)
            inherited = new ArrayList<>(1);
        inherited.add(profile);
    }
Returns the live reference to the inherited profiles of this. This may be modified
if this is not frozen.
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfileVariant.java