LazyParseableElement (@NotNull ILazyParseableElementType type, CharSequence text) { if (type == XML_FILE) { return new XmlFileElement(type, text); } if (type == DTD_FILE) { return new XmlFileElement(type, text); } if (type == XHTML_FILE) { return new XmlFileElement(type, text); } if (type == HTML_FILE) { return new HtmlFileElement(text); } if (type instanceof ITemplateDataElementType) { return new XmlFileElement(type, text); } return null; }