void () { myFixture.enableInspections(SillyAssignmentInspection.class); myFixture.configureByFile(getTestName(false) + ".java"); final IntentionAction intention = myFixture.findSingleIntention(JavaBundle.message("assignment.to.itself.quickfix.name")); assertNotNull(intention); myFixture.launchAction(intention); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); myFixture.checkResultByFile(getTestName(false) + ".after.java"); }