def METHOD_NAME(self, message, **kwargs):
    # type: (Message, **Any) -> None
    updated_entities = message.get("entities", [])[:]
    self.replace_synonyms(updated_entities)
    message.set("entities", updated_entities, add_to_output=True)