void (@NotNull String previewContent) { NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); UIUtil.dispatchAllInvocationEvents(); EmmetPreviewHint previewHint = getPreview(); assertNotNull(previewHint); assertEquals(previewContent, previewHint.getContent()); }