void (@NotNull AnActionEvent e) { final Project project = e.getRequiredData(CommonDataKeys.PROJECT); if (getRepositoryManager(project).hasOngoingRebase()) { ProgressManager.getInstance().run(new Task.Backgroundable(project, getProgressTitle()) { @Override public void run(@NotNull ProgressIndicator indicator) { performActionForProject(project, indicator); } }); } else { super.actionPerformed(e); } }