private static FileType getFileType(@NotNull Language language) {
    assert language instanceof XMLLanguage : "Tag can be created only for xml language";
    FileType type = language.getAssociatedFileType();
    return type == null ? XmlFileType.INSTANCE : type;
  }
private static FileType getFileType(@NotNull Language language)