def write_extracted_licenses(lics, out):
write_value('<STR_LIT>', lics.identifier, out)<EOL>if lics.full_name is not None:<EOL><INDENT>write_value('<STR_LIT>', lics.full_name, out)<EOL><DEDENT>if lics.comment is not None:<EOL><INDENT>write_text_value('<STR_LIT>', lics.comment, out)<EOL><DEDENT>for xref in sorted(lics.cross_ref):<EOL><INDENT>write_value('<STR_LIT>', xref, out)<EOL><DEDENT>write_text_value('<STR_LIT>', lics.text, out)<EOL>
Write extracted licenses fields to out.