protected final function appendTo(
       SimpleXMLElement $parent,
       SimpleXMLElement $child): SimpleXMLElement
   {
       $dom = dom_import_simplexml($parent);
       $dom->appendChild(
           $dom->ownerDocument->importNode(dom_import_simplexml($child),
           true));
       return $parent;
   }