void () { configureByFile("/refactoring/inlineConstantField/" + getTestName(false) + ".java"); PsiElement element = TargetElementUtil .findTargetElement(getEditor(), TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED); assertTrue(element instanceof PsiField); assertNull(InlineConstantFieldHandler.getInitializer((PsiField)element)); }