void (AnActionButton button) { List<RunConfiguration> configurations = new ArrayList<>(); for (RunnerAndConfigurationSettings settings : myRunManager.getAllSettings()) { RunConfiguration configuration = settings.getConfiguration(); if (!mySnapshot.getConfigurationsWithTargets(myRunManager).containsKey(configuration) && canBeAdded(configuration, mySnapshot)) { configurations.add(configuration); } } ConfigurationSelectionUtil.createPopup(myProject, myRunManager, configurations, (selectedConfigs, selectedTarget) -> { for (RunConfiguration each : selectedConfigs) { myModel.add(Pair.create(each, selectedTarget)); } }).showUnderneathOf(decorator.getActionsPanel()); }