PsiElement (@NonNls String fqn, @NonNls String newName, @NonNls String pckg) { XmlAttribute parent = (XmlAttribute)getElement().getParent(); parent.setValue(fqn.substring(pckg.length()) + "." + newName); return parent.getValueElement(); }