@Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    Project project = e.getData(CommonDataKeys.PROJECT);
    if (project == null) return;
    VirtualFile file = JBIterable.from(e.getData(VcsDataKeys.VIRTUAL_FILES)).single();
    if (file == null) return;

    T repository = getRepositoryManager(project).getRepositoryForFileQuick(file);
    if (repository == null) return;
    assert !repository.isFresh();

    JBPopup popup = createPopup(project, repository, file);
    if (popup == null) return;

    ApplicationManager.getApplication().invokeLater(() -> {
      IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> popup.showCenteredInCurrentWindow(project));
    });
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent e)