private void runInBackground(@ProgressTitle @NotNull String name, @NotNull Runnable runnable) {
    if (ApplicationManager.getApplication().isDispatchThread()) {
      ProgressManager.getInstance().runProcessWithProgressSynchronously(runnable, name, false, myVcs.getProject());
    }
    else {
      runnable.run();
    }
  }
private void runInBackground(@ProgressTitle @NotNull String name, @NotNull Runnable runnable)