void () { enableSilentOperation(VcsConfiguration.StandardConfirmation.ADD); final VirtualFile file = createFileInCommand("a.txt", "old content"); changeListManager.ensureUpToDate(); final String listName = "test"; final LocalChangeList list = changeListManager.addChangeList(listName, null); changeListManager.moveChangesTo(list, changeListManager.getChange(file)); final String finalText = "final text"; myScheme.doTest(() -> { final String intermediate = "intermediate text"; changeListManager.editComment(list.getName(), intermediate); assert changeListManager.findChangeList(listName) != null; LocalChangeList list1 = changeListManager.findChangeList(listName); assert intermediate.equals(list1.getComment()); changeListManager.editComment(list1.getName(), finalText); list1 = changeListManager.findChangeList(listName); assert finalText.equals(list1.getComment()); }); LocalChangeList changedList = changeListManager.findChangeList(listName); assert finalText.equals(changedList.getComment()); changeListManager.ensureUpToDate(); changedList = changeListManager.findChangeList(listName); assert finalText.equals(changedList.getComment()); }