private static @Nullable Repository tryCreateRepository(@NotNull Project project,
                                                          @Nullable AbstractVcs vcs,
                                                          @NotNull VirtualFile rootPath,
                                                          @NotNull Disposable disposable) {
    if (vcs == null) return null;
    return EP_NAME.computeSafeIfAny(creator -> {
      if (creator.getVcsKey().equals(vcs.getKeyInstanceMethod())) {
        return creator.createRepositoryIfValid(project, rootPath, disposable);
      }
      return null;
    });
  }
private static @Nullable Repository tryCreateRepository(@NotNull Project project,
                                                          @Nullable AbstractVcs vcs,
                                                          @NotNull VirtualFile rootPath,
                                                          @NotNull Disposable disposable)