void (String newName) { myFixture.configureByFile(getTestName(false) + ".kt"); PsiElement element = TargetElementUtil .findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); assertNotNull(element); new RenameProcessor(getProject(), element, newName, true, true).run(); myFixture.checkResultByFile(getTestName(false) + ".kt.after"); }