void () { myFixture.configureByFiles(getTestName(true) + ".fxml"); PsiElement element = TargetElementUtil .findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); assertNotNull(element); new RenameProcessor(getProject(), element, "lb1", true, true).run(); myFixture.checkResultByFile(getTestName(true) + "_after.fxml"); }