void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); GitRepository repository = GitBranchUtil.guessRepositoryForOperation(project, e.getDataContext()); if (repository == null) return; GitBranchesTreePopup.show(project, repository); }