boolean (String newName, Language language) { PsiNamedElement namedElement = getVariable(); return namedElement != null ? RenameUtil.isValidName(myProject, namedElement, newName) : super.isIdentifier(newName, language); }