@Override
  public PsiElement handleElementRename(@NotNull String name) throws IncorrectOperationException {
    if (myElement instanceof XmlAttribute attr) {
      return ("xmlns".equals(attr.getNamespacePrefix()))
             ? attr.setName(attr.getNamespacePrefix() + ":" + name)
             : attr.setName(name + ":" + attr.getLocalName());
    }
    else if (myElement instanceof XmlTag tag) {
      return tag.setName(name + ":" + tag.getLocalName());
    }
    return super.handleElementRename(name);
  }
@Override
  public PsiElement handleElementRename(@NotNull String name)