@Override
  public @NotNull XmlTag createTagFromText(@NotNull @NonNls CharSequence text, @NotNull Language language) throws IncorrectOperationException {
    final FileType type = getFileType(language);
    final XmlDocument document = createXmlDocument(text, "dummy." + type.getDefaultExtension(), type);
    final XmlTag tag = document.getRootTag();
    if (tag == null) throw new IncorrectOperationException("Incorrect tag text");
    return tag;
  }
@Override
  public @NotNull XmlTag createTagFromText(@NotNull @NonNls CharSequence text, @NotNull Language language)