List<CommittedChangeList> () { Pair<List<RepositoryLocationGroup>, List<RepositoryLocation>> groupingResult = myVcsPartner.groupLocations(myInLocations); List<CommittedChangeList> result = new ArrayList<>(); result.addAll(ContainerUtil.flatten(collectChangeLists(groupingResult.getSecond()))); for (RepositoryLocationGroup group : groupingResult.getFirst()) { result.addAll(mergeLocationGroupChangeLists(group)); } return result; }