@Override
  public boolean processFile(@NotNull VirtualFile fileOrDir) {
    indicator.freezeIfPaused(); // give a chance to suspend indexing
    ProgressManager.checkCanceled();

    try {
      processFileRethrowExceptions(fileOrDir);
    }
    catch (ProcessCanceledException pce) {
      throw pce;
    }
    catch (Exception e) {
      UnindexedFilesScanner.LOG.error("Error while scanning " + fileOrDir.getPresentableUrl() + "\n" +
                                      "To reindex this file IDEA has to be restarted", e);
    }
    return true;
  }
@Override
  public boolean processFile(@NotNull VirtualFile fileOrDir)