void (@NotNull VirtualFile file, boolean forceRebuild) { GistManager.getInstance().invalidateData(file); VfsEventsMerger.tryLog("explicit_request_reindex", file); // todo: this is the same vfs event handling sequence that is produces after events of FileContentUtilCore.reparseFiles // but it is more costly than current code, see IDEA-192192 //myChangedFilesCollector.invalidateIndicesRecursively(file, false); //myChangedFilesCollector.buildIndicesForFileRecursively(file, false); ChangedFilesCollector changedFilesCollector = getChangedFilesCollector(); if (forceRebuild) { file.putUserData(IndexingDataKeys.REBUILD_REQUESTED, Boolean.TRUE); IndexingFlag.cleanProcessedFlagRecursively(file); } changedFilesCollector.scheduleForIndexingRecursively(file, true); if (myRegisteredIndexes.isInitialized()) { changedFilesCollector.ensureUpToDateAsync(); } }