void (final @NotNull AnActionEvent e) { final ListPopup popup = JBPopupFactory.getInstance() .createActionGroupPopup(IdeBundle.message("popup.title.play.saved.macros"), new MacrosGroup(), e.getDataContext(), JBPopupFactory.ActionSelectionAid.SPEEDSEARCH, false); final Project project = e.getProject(); if (project != null ) { popup.showCenteredInCurrentWindow(project); } else { popup.showInFocusCenter(); } }