@NotNull
  public GlobalSearchScope getDirtyScope() {
    final Project project = myProject;
    return ReadAction.compute(() -> {
      synchronized (myLock) {
        if (myCompilationPhase) {
          return ProjectScope.getContentScope(project);
        }
        if (project.isDisposed()) throw new ProcessCanceledException();
        return CachedValuesManager.getManager(project).getCachedValue(this, () ->
          CachedValueProvider.Result
            .create(calculateDirtyScope(), PsiModificationTracker.MODIFICATION_COUNT, VirtualFileManager.getInstance(),
                    myModificationTracker));
      }
    });
  }
@NotNull
  public GlobalSearchScope getDirtyScope()