boolean (@NotNull ChooseRunConfigurationPopup.ItemWrapper selected, int modifiers, @NotNull String searchText) { RunnerAndConfigurationSettings settings = ObjectUtils.tryCast(selected.getValue(), RunnerAndConfigurationSettings.class); if (settings != null) { int mode = getMode(searchText, modifiers); Executor executor = findExecutor(settings, mode); if (executor != null) { DataManager dataManager = DataManager.getInstance(); selected.perform(myProject, executor, dataManager.getDataContext(myContextComponent)); } } return true; }