List<CommittedChangeList> (@NotNull List<? extends CommittedChangeList> changeLists) { if (mySelection.size() == 0) { return new ArrayList<>(changeLists); } final ArrayList<CommittedChangeList> result = new ArrayList<>(); for (CommittedChangeList list : changeLists) { if (listMatchesSelection(list)) { result.add(list); } } return result; }