static RegionAllocationAtomicityLock defaultLock(@NotNull Path mainStorageFile) {
      if (CRASH_TOLERANT_EXPANSION) {
        return new FileBasedRegionAllocationLock(mainStorageFile);
      }
      else {
        return new NoLock();
      }
    }
static RegionAllocationAtomicityLock defaultLock(@NotNull Path mainStorageFile)