@Override
  public void update(@NotNull AnActionEvent e) {
    HgRepository repository = getSelectedRepositoryFromEvent(e.getDataContext());
    e.getPresentation().setEnabledAndVisible(repository != null && repository.getRepositoryConfig().isMqUsed());
  }
@Override
  public void update(@NotNull AnActionEvent e)