private TwigLexer getTwigLexer(Reader stream, LexerState startState)
{
final TwigLexer lexer = new TwigLexer(stream);
lexer.initialize(ST_TWIG_CONTENT);
lexer.setPatterns(project);
// set the wanted state
if (startState != null) {
startState.restoreState(lexer);