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