@Override
  protected JBPopup getWidgetPopup(@NotNull Project project, @NotNull HgRepository repository) {
    StatusBar statusBar = myStatusBar;
    return statusBar == null ? null : HgBranchPopup.getInstance(project, repository, DataManager.getInstance().getDataContext(statusBar.getComponent())).asListPopup();
  }
@Override
  protected JBPopup getWidgetPopup(@NotNull Project project, @NotNull HgRepository repository)