/*DBLanguageFile originalFile = (DBLanguageFile) file.getViewProvider().getAllFiles().get(0).getOriginalFile();
if (originalFile != null) file = originalFile;*/
String text = chameleon.getText();
ParserDefinition parserDefinition = languageDialect.getParserDefinition();
Lexer lexer = parserDefinition.createLexer(project);
DBLanguageParser parser = (DBLanguageParser) parserDefinition.createParser(project);
PsiBuilder builder = PsiBuilderFactory.getInstance().createBuilder(project, chameleon, lexer, languageDialect, text);
ASTNode node = parser.parse(this, builder, file.getParseRootId());
return node.getFirstChildNode();
}