@TestOnly
  @RequiresEdt
  public static void waitForAsyncTaskCompletion(@NotNull Project project) {
    NonBlockingReadActionImpl.waitForAsyncTaskCompletion();
    project.getService(ScopeService.class).waitForAsyncTaskCompletion();
  }
@TestOnly
  @RequiresEdt
  public static void waitForAsyncTaskCompletion(@NotNull Project project)