void (AnActionButton button) { int index = myList.getSelectedIndex(); if (index == -1) return; RunConfiguration configuration = myModel.get(index).first; RunConfigurationSelector selector = RunConfigurationSelector.KEY.getData(DataManager.getInstance().getDataContext(button.getContextComponent())); if (selector != null) { selector.select(configuration); } }