@Override
  public void actionPerformed(final @NotNull AnActionEvent e) {
    DataContext dataContext = e.getDataContext();
    ActionGroup group = getGroup();
    ListPopup popup = JBPopupFactory.getInstance()
      .createActionGroupPopup(HtmlToolsBundle.message("html.action.open_in.list.popup.title"), group, dataContext,
                              JBPopupFactory.ActionSelectionAid.MNEMONICS, false);
    Object onlyItem = ContainerUtil.getOnlyItem(popup.getListStep().getValues());
    if (onlyItem instanceof PopupFactoryImpl.ActionItem actionItem) {
      actionItem.getAction().actionPerformed(e);
    }
    else {
      popup.showInBestPositionFor(dataContext);
    }
  }
@Override
  public void actionPerformed(final @NotNull AnActionEvent e)