@Override
  public void tryRecover(@NotNull PersistentFSLoader loader) {
    List<VFSInitException> contentStoragesProblems = loader.problemsDuringLoad(
      CONTENT_STORAGES_NOT_MATCH,
      CONTENT_STORAGES_INCOMPLETE
    );
    if (contentStoragesProblems.isEmpty()) {
      return;
    }

    try {
      LOG.info(contentStoragesProblems.size() + " ContentStorage-related issue(s) -> trying to fix");
      PersistentFSRecordsStorage records = loader.recordsStorage();
      try {
        //Check: is there really any problem?
        checkContentStorage(loader);
        //if not -> false alarm? mark content-related problems as 'fixed'
        loader.problemsWereRecovered(contentStoragesProblems);
        LOG.warn("ContentStorage was verified, no problems found -> seems like false alarm?");
      }
      catch (Throwable ex) {
        LOG.warn("ContentStorage verification is failed: " + ex.getMessage());
        //Seems like the ContentStorage is totally broken -> clean everything,
        //  and invalidate all the contentId references from fs-records (and other places):

        VFSContentStorage contentStorage = loader.contentsStorage();
        contentStorage.closeAndClean();

        VFSContentStorage emptyContentStorage = loader.createContentStorage(loader.contentsHashesFile, loader.contentsFile);
        loader.setContentsStorage(emptyContentStorage);

        cleanAllContentIds(records);
        // FIXME MAYBE VfsLog recovery related: we don't place a special event in VfsLog about content storage being cleared.
        //  Clearing all references to old contents from records should suffice.

        //inform others (LocalHistory) that old contentIds are no longer valid:
        loader.contentIdsInvalidated(true);
        loader.problemsWereRecovered(contentStoragesProblems);
        LOG.warn("ContentStorage is found broken -> fixed by invalidating all the content refs (LocalHistory is lost)");
      }
    }
    catch (Throwable t) {
      loader.problemsRecoveryFailed(
        contentStoragesProblems,
        CONTENT_STORAGES_INCOMPLETE,
        "Content storage recovery fails",
        t
      );
    }
  }
@Override
  public void tryRecover(@NotNull PersistentFSLoader loader)