public static PagedFileStorageWithRWLockedPageContent createWithDefaults(@NotNull Path file,
                                                                           @Nullable StorageLockContext storageLockContext,
                                                                           int pageSize,
                                                                           boolean nativeBytesOrder,
                                                                           @NotNull PageContentLockingStrategy strategy)
    throws IOException {
    // TODO read-only flag should be extracted from PersistentHashMapValueStorage.CreationTimeOptions
    boolean readOnly = PersistentHashMapValueStorage.CreationTimeOptions.READONLY.get() == Boolean.TRUE;

    StorageLockContext storageContext = findOutAppropriateContext(storageLockContext);

    int actualPageSize = Math.max(pageSize > 0 ? pageSize : PageCacheUtils.DEFAULT_PAGE_SIZE, AbstractStorage.PAGE_SIZE);

    return new PagedFileStorageWithRWLockedPageContent(
      file, storageContext,
      actualPageSize, nativeBytesOrder, readOnly,
      strategy
    );
  }
public static PagedFileStorageWithRWLockedPageContent createWithDefaults(@NotNull Path file,
                                                                           @Nullable StorageLockContext storageLockContext,
                                                                           int pageSize,
                                                                           boolean nativeBytesOrder,
                                                                           @NotNull PageContentLockingStrategy strategy)