protected function customAttributesToDOM(\DOMElement $element) : void
    {
        foreach ($this->customAttributes as $key => $value) {
            $element->setAttribute($key, $value);
        }
    }