void (AnActionButton button) { Pair<Url, Url> result = SelectLocationDialog.selectLocationAndRoot(project, notNull(usedRootUrl, rootUrl)); if (result != null) { Url selectedUrl = result.first; usedRootUrl = result.second; if (selectedUrl != null && !myConfiguration.getBranchLocations().contains(selectedUrl)) { myConfiguration.addBranches(selectedUrl, new InfoStorage<>(new ArrayList<>(), InfoReliability.empty)); mySvnBranchConfigManager.reloadBranchesAsync(myRoot, selectedUrl, InfoReliability.setByUser); myBranchLocationsModel.add(selectedUrl); myBranchLocationsList.setSelectedIndex(myBranchLocationsModel.getSize() - 1); } } }