def METHOD_NAME(self, entity, part, parent):
    payload = self.decode_part(part)
    entity.add("bodyText", payload)
    if not self.has_alternative(parent, "text/html"):
        html = self.make_html_alternative(payload)
        entity.add("bodyHtml", html)