void () { enableSilentOperation(VcsConfiguration.StandardConfirmation.ADD); final VirtualFile file = createFileInCommand("a.txt", "old content"); final VirtualFile fileB = createFileInCommand("b.txt", "old content"); changeListManager.ensureUpToDate(); final LocalChangeList list = changeListManager.addChangeList("test", null); changeListManager.moveChangesTo(list, changeListManager.getChange(file)); myScheme.doTest(() -> { changeListManager.removeChangeList(list.getName()); assert changeListManager.findChangeList(list.getName()) == null; checkFilesAreInList(myDefaulListName, file, fileB); }); assert changeListManager.findChangeList(list.getName()) == null; checkFilesAreInList(myDefaulListName, file, fileB); changeListManager.ensureUpToDate(); assert changeListManager.findChangeList(list.getName()) == null; checkFilesAreInList(myDefaulListName, file, fileB); }