void (@NotNull AnActionButton button) { DefaultActionGroup group = new DefaultActionGroup(); fillConditions(group); DataContext context = DataManager.getInstance().getDataContext(button.getContextComponent()); ListPopup popup = JBPopupFactory.getInstance().createActionGroupPopup(null, group, context, JBPopupFactory.ActionSelectionAid.ALPHA_NUMBERING, true, null); popup.show(Objects.requireNonNull(button.getPreferredPopupPoint())); }