List<CommittedChangeList> (final List<? extends List<Fragment>> fragmentsListList) { final List<CommittedChangeList> lists = new ArrayList<>(); // take those _after_ committed for (List<Fragment> fragmentList : fragmentsListList) { for (Fragment fragment : fragmentList) { if (Origin.VISUAL.equals(fragment.getOrigin())) { break; } lists.addAll(fragment.getList()); } } return lists; }