void (@Nullable Project project, @Nullable final GlobalSearchScope filter, @Nullable final VirtualFile restrictedTo) { Collection<VirtualFile> allFilesToUpdate = getChangedFilesCollector().getAllFilesToUpdate(); if (!allFilesToUpdate.isEmpty()) { boolean includeFilesFromOtherProjects = restrictedTo == null && project == null; List<VirtualFile> virtualFilesToBeUpdatedForProject = ContainerUtil.filter( allFilesToUpdate, new ProjectFilesCondition(projectIndexableFiles(project), filter, restrictedTo, includeFilesFromOtherProjects) ); if (!virtualFilesToBeUpdatedForProject.isEmpty()) { myForceUpdateTask.processAll(virtualFilesToBeUpdatedForProject, project); } } }