PsiElement (ASTNode node) { if (node.getElementType() instanceof XmlStubBasedElementType) { //noinspection rawtypes return ((XmlStubBasedElementType)node.getElementType()).createPsi(node); } if (node.getElementType() instanceof HtmlCustomEmbeddedContentTokenType) { return ((HtmlCustomEmbeddedContentTokenType)node.getElementType()).createPsi(node); } if (node.getElementType() == XmlElementType.HTML_EMBEDDED_CONTENT) { return new HtmlEmbeddedContentImpl(node); } return PsiUtilCore.NULL_PSI_ELEMENT; }