void () { setupUncommittedDocument(); waitForFuture(ApplicationManager.getApplication().executeOnPooledThread(() -> { ReadAction.run(() -> { assertThrows(IllegalStateException.class, "cannot be satisfied", () -> ReadAction.nonBlocking(() -> "a").withDocumentsCommitted(getProject()).executeSynchronously()); }); })); }