boolean (JBList dependenciesList) { DependencyOnPlugin selected = (DependencyOnPlugin)dependenciesList.getSelectedValue(); if (selected != null) { replaceDependency(selected, dependenciesList); return true; } return false; }