List<Change> (final List<? extends CommittedChangeList> selectedChangeLists, final boolean withMovedTrees) { selectedChangeLists.sort(CommittedChangeListByDateComparator.ASCENDING); List<Change> changes = new ArrayList<>(); for (CommittedChangeList cl : selectedChangeLists) { changes.addAll(withMovedTrees ? cl.getChangesWithMovedTrees() : cl.getChanges()); } return zipChanges(changes); }