void (PsiClass aClass, String hint, String expectedPreview, String expectedClass) { IntentionAction intention = myFixture.findSingleIntention(hint); String previewText = myFixture.getIntentionPreviewText(intention); assertEquals(expectedPreview, previewText); myFixture.launchAction(intention); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); assertEquals(expectedClass, aClass.getText()); }