def _add_mailjet(pofile: polib.POFile, folder: str) -> None: for entry in extract_from_mailjet(folder): existing_entry = pofile.find(entry.msgid) if existing_entry: existing_entry.occurrences.extend(entry.occurrences) else: pofile.append(entry)