setAddAction(new AnActionButtonRunnable() {
@Override
public void run(AnActionButton anActionButton) {
final String selectedSonarServerName = mySonarServersView.getSelectedItem();
if (!NO_SONAR.equals(selectedSonarServerName)) {
ResourcesSelectionConfigurable dlg = new ResourcesSelectionConfigurable(myProject, selectedSonarServerName);
dlg.show();
if (dlg.isOK()) {
final java.util.List<Resource> selectedSonarResources = dlg.getSelectedSonarResources();
final java.util.List<Resource> currentSonarResources = mySonarResourcesTable.getItems();
Set<Resource> mergedSonarResourcesAsSet = new TreeSet<Resource>(new Comparator<Resource>() {
@Override
public int compare(Resource resource, Resource resource2) {