public function getAttributesForElement(Element $element) : string
    {
        $attributes = [];

        if ($this->usesTrait($element, Classable::class)) {
            $attributes[] = $element->renderClassAttribute();
        }

        if ($this->usesTrait($element, Spannable::class)) {
            $attributes[] = $element->renderSpanAttribute();
        }

        if ($this->usesTrait($element, Attributable::class)) {
            $attributes[] = $element->renderAttributes();
        }

        $attributes = array_filter($attributes);

        return $attributes ? ' ' . implode(' ', $attributes) : '';
    }