ASTNode (@NotNull ASTNode chameleon) { final PsiElement parentElement = chameleon.getTreeParent().getPsi(); final Project project = JavaPsiFacade.getInstance(parentElement.getProject()).getProject(); final PsiBuilder builder = PsiBuilderFactory.getInstance().createBuilder(project, chameleon, new GroovyDocLexer(), getLanguage(), chameleon.getText()); final PsiParser parser = new GroovyDocParser(); return parser.parse(this, builder).getFirstChildNode(); }