XmlTag (Project project, XmlTag myTag, String text) { return myTag instanceof HtmlTag ? XmlElementFactory.getInstance(project).createHTMLTagFromText(text) : XmlElementFactory.getInstance(project).createXHTMLTagFromText(text); }