void (@NotNull AnActionEvent e) { ActionGroup mainMenu = (ActionGroup)ActionManager.getInstance().getAction(IdeActions.GROUP_MAIN_MENU); JBPopupFactory.getInstance() .createActionGroupPopup("Main Menu", mainMenu, e.getDataContext(), false, true, false, null, 30, null) .showInBestPositionFor(e.getDataContext()); }