void (@NotNull DataContext dataContext, @NotNull ChooseRunConfigurationPopup.ItemWrapper wrapper) { Executor executor = EXECUTOR_KEY.getData(dataContext); assert executor != null; Object value = wrapper.getValue(); Project project = fetchProject(dataContext); if (value instanceof RunnerAndConfigurationSettings runnerAndConfigurationSettings) { if (!RunManager.getInstance(project).hasSettings(runnerAndConfigurationSettings)) { RunManager.getInstance(project).addConfiguration(runnerAndConfigurationSettings); RunConfigurationOptionUsagesCollector.logAddNew( project, runnerAndConfigurationSettings.getType().getId(), ActionPlaces.RUN_ANYTHING_POPUP); } } wrapper.perform(project, executor, dataContext); }