def METHOD_NAME(fields: typing.List[Field], dialect: Dialect) -> java.CompilationUnit:
    name = '{}Tags'.format(dialect.class_name_prefix)
    javadoc = 'Tags for {}.'.format(dialect.name)
    constant_fields = [_format_tag(field) for field in fields]
    return _format_constant_fields(name, javadoc, constant_fields, dialect)