void () { // epic fail - two same named intentions final String testName = getTestName(false); myFixture.configureByFile(getRelativePath() + "/" + testName + ".java"); for (IntentionAction action : myFixture.filterAvailableIntentions(myDefaultHint)) { action = IntentionActionDelegate.unwrap(action); if (QuickFixWrapper.unwrap(action) != null) { myFixture.launchAction(action); NonBlockingReadActionImpl.waitForAsyncTaskCompletion(); myFixture.checkResultByFile(getRelativePath() + "/" + testName + ".after.java"); return; } } fail(); }