@NotNull
  PsiElement setName(final @NotNull String nameText) throws IncorrectOperationException {
    final ASTNode name = XmlChildRole.ATTRIBUTE_NAME_FINDER.findChild(myAttribute.getNode());
    final String oldValue = notNull(myAttribute.getValue(), "");
    final XmlAttribute newAttribute = createAttribute(nameText, oldValue, getPreferredQuoteStyle());
    final ASTNode newName = XmlChildRole.ATTRIBUTE_NAME_FINDER.findChild(newAttribute.getNode());
    if (!oldValue.isEmpty() && myAttribute.getLanguage().isKindOf(HTMLLanguage.INSTANCE)) {
      CodeEditUtil.replaceChild(myAttribute.getNode().getTreeParent(), myAttribute.getNode(), newAttribute.getNode());
      return newAttribute;
    }
    else if (name != null && newName != null) {
      CodeEditUtil.replaceChild(myAttribute.getNode(), name, newName);
    }
    return myAttribute;
  }
@NotNull
  PsiElement setName(final @NotNull String nameText)