void () { String testFileName = getTestName(false); myFixture.configureByFile(testFileName + ".java"); IntentionAction action = myFixture.getAvailableIntention( CodeInsightBundle.message("rename.named.element.text", "foo", "ignored1")); assertNotNull(action); myFixture.launchAction(action); myFixture.checkResultByFile(testFileName + "_after.java", true); }