void () { final Document document = new MockDocument(); WriteCommandAction.runWriteCommandAction(null, () -> changeDocument(document, getPsiDocumentManager())); assertEquals(0, getPsiDocumentManager().getUncommittedDocuments().length); }