@Override
  public void actionPerformed(@NotNull AnActionEvent e) {
    Project project = e.getData(CommonDataKeys.PROJECT);
    if (project == null) return;
    VcsRepositoryManager manager = VcsRepositoryManager.getInstance(project);
    Collection<Repository> repositories = e.getData(CommonDataKeys.EDITOR) != null
                                          ? ContainerUtil.emptyList()
                                          : collectRepositories(manager, e.getData(CommonDataKeys.VIRTUAL_FILE_ARRAY));
    Repository selectedRepo = DvcsUtil.guessRepositoryForOperation(project, e.getDataContext());
    new VcsPushDialog(project, DvcsUtil.sortRepositories(repositories), selectedRepo).show();
  }
@Override
  public void actionPerformed(@NotNull AnActionEvent e)