public static void scheduleReindexingInDumbMode(@NotNull Project project) {
    final FileBasedIndex i = FileBasedIndex.getInstance();
    if (i instanceof FileBasedIndexImpl &&
        IndexInfrastructure.hasIndices() &&
        !project.isDisposed() &&
        mightHaveManyChangedFilesInProject(project)) {

      String indexingReason = "On refresh of files in " + project.getName();
      new UnindexedFilesIndexer(project, indexingReason).queue(project);
    }
  }
public static void scheduleReindexingInDumbMode(@NotNull Project project)