FileType (@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; }