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