private function addSchemaAttributes(string $sectionId, bool $inside, Attributes $attributes): void
    {
        if ($inside) {
            return;
        }

        switch ($sectionId) {
            case static::MAIN:
                $attributes->setAttribute('itemscope', true);
                $attributes->setAttribute('itemtype', 'http://schema.org/WebPageElement');
                $attributes->setAttribute('itemprop', 'mainContentOfPage');
                break;

            case static::HEADER:
                $attributes->setAttribute('itemscope', true);
                $attributes->setAttribute('itemtype', 'http://schema.org/WPHeader');
                break;

            default:
                // Do nothing.
        }
    }