void (@NotNull ProgressIndicator indicator) { assertFalse(getPsiDocumentManager().isCommitted(document)); getPsiDocumentManager().commitAndRunReadAction(() -> assertTrue(getPsiDocumentManager().isCommitted(document))); }