protected function addInheritedFromTag(\DOMElement $docBlock, $descriptor)
    {
        $parentElement = $descriptor->getInheritedElement();
        if (! $parentElement instanceof $descriptor) {
            return;
        }

        $child = new \DOMElement('tag');
        $docBlock->appendChild($child);

        $rule = $this->router->match($parentElement);

        $child->setAttribute('name', 'inherited_from');
        $child->setAttribute('description', $parentElement->getFullyQualifiedStructuralElementName());
        $child->setAttribute('refers', $parentElement->getFullyQualifiedStructuralElementName());
        $child->setAttribute('link', $rule ? $rule->generate($parentElement) : '');
    }