@TestOnly
  public static void waitForAsyncTaskCompletion() {
    ThreadingAssertions.assertEventDispatchThread();
    assert !ApplicationManager.getApplication().isWriteAccessAllowed();
    for (Submission<?> task : ourTasks) {
      waitForTask(task);
    }
  }
@TestOnly
  public static void waitForAsyncTaskCompletion()