List<Change> (@NotNull ListData data) { List<Change> changes = new ArrayList<>(); for (Change change : myIdx.getChanges()) { ListData list = myChangeMappings.get(change); if (list != null) { if (list == data) { changes.add(change); } } else { PartialChangeTracker tracker = getChangeTrackerFor(change); if (tracker != null && tracker.getAffectedChangeListsIds().contains(data.id)) { changes.add(change); } } } return changes; }