void (final String listName, VirtualFile... files) { System.out.println("Checking files for list: " + listName); assertNotNull(changeListManager.findChangeList(listName)); final Collection<Change> changes = changeListManager.findChangeList(listName).getChanges(); assertEquals(changes.size(), files.length); for (Change change : changes) { assertThat(change.getAfterRevision().getFile().getVirtualFile(), isIn(files)); } }