public static Sizes create(final List<Long> list, final long defaultSize) {
        long[] sizes = new long[0];
        if (list != null) {
            sizes = list.stream().mapToLong(i -> {
                if (i != null) {
                    return i;
                }
                return defaultSize;
            }).toArray();
        }

        return new Sizes(sizes, defaultSize);
    }
Create a set of sizes based on a list of longs. Where a size is not provided for a requested depth the
supplied default size will be used.

@param list        The list of sizes to use.
@param defaultSize The default size to return if needed.
@return A new set of sizes.
stroom-query/stroom-query-common/src/main/java/stroom/query/common/v2/Sizes.java