void (@NotNull AnActionEvent e) { List<AnAction> actions = getActions(e.getDataContext()); if (actions == null) return; String title = getTemplatePresentation().getText(); DefaultActionGroup group = new DefaultActionGroup(actions); ListPopup popup = JBPopupFactory.getInstance(). createActionGroupPopup(title, group, e.getDataContext(), JBPopupFactory.ActionSelectionAid.NUMBERING, true); popup.showInBestPositionFor(e.getDataContext()); }