void (final @NotNull AnActionEvent e) { FileDocumentManager.getInstance().saveAllDocuments(); final Project project = e.getRequiredData(CommonDataKeys.PROJECT); GitVcs vcs = GitVcs.getInstance(project); final 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); }