@Override
    public void actionPerformed(@NotNull AnActionEvent e) {
      JBPopupFactory popupFactory = JBPopupFactory.getInstance();
      DataContext dataContext = e.getDataContext();
      ListPopupStep step = popupFactory.createActionsStep(
        myActionGroup, dataContext, null, false,
        false, myActionGroup.getTemplatePresentation().getText(), myTree,
        true, myPreselection != null ? myPreselection.getDefaultIndex() : 0, true);
      final ListPopup listPopup = popupFactory.createListPopup(step);
      listPopup.setHandleAutoSelectionBeforeShow(true);
      listPopup.show(JBPopupFactory.getInstance().guessBestPopupLocation(this, e));
    }
@Override
    public void actionPerformed(@NotNull AnActionEvent e)