@NotNull
  private GlobalSearchScope calculateDirtyScope() {
    final Set<Module> dirtyModules = getAllDirtyModules();
    if (dirtyModules.isEmpty()) return myExcludedFilesScope;
    if (dirtyModules.size() == ModuleManager.getInstance(myProject).getModules().length) {
      return ProjectScope.getContentScope(myProject);
    }
    return GlobalSearchScope.union(
      ContainerUtil.append(ContainerUtil.map(dirtyModules, Module::getModuleWithDependentsScope), myExcludedFilesScope));
  }
@NotNull
  private GlobalSearchScope calculateDirtyScope()