void () { DefaultActionGroup group = new DefaultActionGroup(); for (BeforeRunTaskProvider<BeforeRunTask<?>> provider : getProviders()) { group.add(new TagAction(provider)); } ListPopup popup = JBPopupFactory .getInstance().createActionGroupPopup(ExecutionBundle.message("add.new.before.run.task.name"), group, DataManager.getInstance().getDataContext(myAddButton), false, false, false, null, -1, Conditions.alwaysTrue()); popup.showUnderneathOf(myAddButton); }