}
protected ASTNode createAST(@NotNull String text, @NotNull ParserDefinition definition) {
PsiParser parser = definition.createParser(getProject());
Lexer lexer = definition.createLexer(getProject());
PsiBuilderImpl psiBuilder = new PsiBuilderImpl(getProject(), null, definition, lexer, new CharTableImpl(), text, null, null);
return parser.parse(definition.getFileNodeType(), psiBuilder);
}