public List<QueryProfile> inherited() {
        if (inherited == null) {
            if (frozen)
                return List.of();
            else
                inherited = new ArrayList<>();
        }
        return inherited;
    }
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