@Override
  public @Nullable AbstractVcs findVcsByName(@Nullable String name) {
    if (name == null) return null;
    AbstractVcs vcs = AllVcses.getInstance(myProject).getByName(name);
    if (vcs == null && myProject.isDisposed()) {
      // Take readLock to avoid race between Project.isDisposed and Disposer.dispose.
      ReadAction.run(ProgressManager::checkCanceled);
    }
    return vcs;
  }
@Override
  public @Nullable AbstractVcs findVcsByName(@Nullable String name)