void (final String newName, boolean inline) { myFixture.configureByFiles(getTestName(true) + ".fxml", getTestName(false) + ".java"); PsiElement element = TargetElementUtil .findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); assertNotNull(element); if (inline) { Editor editorForElement = PsiEditorUtil.findEditor(element); CodeInsightTestUtil.doInlineRename(new MemberInplaceRenameHandler(), newName, ObjectUtils.notNull(editorForElement, getEditor()), element); } else { new RenameProcessor(getProject(), element, newName, true, true).run(); } myFixture.checkResultByFile(getTestName(true) + "_after.fxml"); }