protected function getNextExpectedStringValueFromStream(
        \Twig_TokenStream $stream,
        $type
    ) {
        $stream->next();
        $stream->expect(\Twig_Token::PUNCTUATION_TYPE);

        return $stream->expect($type)->getValue();
    }