protected function handleEndState($content, $position, TokenList $tokenList) {
        if (!empty($content)) {
            $tokenList->addToken($this->name, $position)
                ->set('content', $content);
        }
    }