void () { final NamedLegendStatuses includedNameStatuses = new NamedLegendStatuses(); final Collection<AbstractFilePatchInProgress.PatchChange> includedChanges = myChangesTreeList.getIncludedChanges(); final Set<Couple<String>> set = new HashSet<>(); for (AbstractFilePatchInProgress.PatchChange change : includedChanges) { final FilePatch patch = change.getPatchInProgress().getPatch(); final Couple<String> pair = Couple.of(patch.getBeforeName(), patch.getAfterName()); if (set.contains(pair)) continue; set.add(pair); acceptChange(includedNameStatuses, change); } myInfoCalculator.setIncluded(includedNameStatuses); myCommitLegendPanel.update(); updateOkActions(); }