void (final String listName, final ChangeListManager manager, final VirtualFile... files) { assert manager.findChangeList(listName) != null : manager.getChangeLists(); final LocalChangeList list = manager.findChangeList(listName); final Collection<Change> changes = list.getChanges(); assert changes.size() == files.length : "size: " + changes.size() + " " + debugRealListContent(list); for (Change change : changes) { final VirtualFile vf = change.getAfterRevision().getFile().getVirtualFile(); boolean found = false; for (VirtualFile file : files) { if (file.equals(vf)) { found = true; break; } } assert found : debugRealListContent(list); } }