@Override
  public void actionPerformed(final @NotNull AnActionEvent e) {
    FileDocumentManager.getInstance().saveAllDocuments();
    Project project = e.getData(CommonDataKeys.PROJECT);
    if (project == null) return;
    GitVcs vcs = GitVcs.getInstance(project);
    List<VirtualFile> roots = getGitRoots(project, vcs);
    if (roots == null || roots.isEmpty()) return;

    GitRepository selectedRepo = GitBranchUtil.guessRepositoryForOperation(project, e.getDataContext());
    VirtualFile defaultRoot = selectedRepo != null ? selectedRepo.getRoot() : roots.get(0);
    perform(project, roots, defaultRoot);
  }
@Override
  public void actionPerformed(final @NotNull AnActionEvent e)