private PermissionCache calculatePermissions(QueryOptions queryOptions) {
        Objects.requireNonNull(queryOptions, "queryOptions");
        CacheMetadata metadata = getMetadataForQueryOptions(queryOptions);

        ConcurrentHashMap<String, Node> sourcePermissions = resolvePermissions(ConcurrentHashMap::new, queryOptions);
        return new PermissionCache(queryOptions, metadata, getCalculatorFactory(), sourcePermissions);
    }
Resolves the owners meta data for the given {@link QueryOptions}.

@param accumulator the accumulator to add resolved meta to
@param queryOptions the query options
common/src/main/java/me/lucko/luckperms/common/cacheddata/AbstractCachedDataManager.java