void () { final String newName = "newHandlerName"; final String fxmlPath = getTestName(true) + ".fxml"; final String fxmlPathAfter = getTestName(true) + "_after.fxml"; final String baseClassName = getTestName(false) + "Base"; myFixture.configureByFiles(baseClassName + ".java", getTestName(false) + ".java", fxmlPath); doRenameWithAutomaticRenamers(newName); myFixture.checkResultByFile(fxmlPath, fxmlPathAfter, false); final PsiClass psiClass = myFixture.findClass(baseClassName); assertNotNull(psiClass); assertMethodExists(psiClass, newName); }