void (VirtualFile... files) { ensureUpToDate(); final List<Change> changes = new ArrayList<>(files.length); for (VirtualFile f : files) { changes.addAll(peer.getChangesIn(f)); } final LocalChangeList list = peer.getDefaultChangeList(); assertNotNull(list); peer.editComment(list.getName(), "A comment to a commit"); EdtTestUtil.runInEdtAndWait(() -> peer.commitChangesSynchronouslyWithResult(list, changes)); ensureUpToDate(); }