private function convertToNowdoc(Token $token)
    {
        return new Token([
            $token->getId(),
            Preg::replace('/^([Bb]?<<<)([ \t]*)"?([^\s"]+)"?/', '$1$2\'$3\'', $token->getContent()),
        ]);
    }