void () { final Map<Couple<String>, SvnMergeInfoRootPanelManual.InfoHolder> states = new HashMap<>(); for (Map.Entry<String, SvnMergeInfoRootPanelManual> entry : myMergePanels.entrySet()) { final String localPath = entry.getKey(); final WCInfoWithBranches wcInfo = entry.getValue().getWcInfo(); states.put(Couple.of(localPath, wcInfo.getUrl().toString()), entry.getValue().getInfo()); } createPanels(myLocation, () -> { for (Map.Entry<String, SvnMergeInfoRootPanelManual> entry : myMergePanels.entrySet()) { final String localPath = entry.getKey(); final WCInfoWithBranches wcInfo = entry.getValue().getWcInfo(); final Couple<String> key = Couple.of(localPath, wcInfo.getUrl().toString()); final SvnMergeInfoRootPanelManual.InfoHolder infoHolder = states.get(key); if (infoHolder != null) { entry.getValue().initSelection(infoHolder); } } }); }