void (boolean only, VirtualFile... files) { ensureUpToDate(); final Collection<Change> changes = peer.getDefaultChangeList().getChanges(); if (only) { assertEquals(files.length, changes.size()); } final Collection<VirtualFile> filesInChangeList = new HashSet<>(); for (Change c : changes) { filesInChangeList.add(c.getVirtualFile()); } for (VirtualFile f : files) { Assert.assertTrue(filesInChangeList.contains(f)); } }