def METHOD_NAME(self) -> None:
    if self.synonyms:
        with self._model_storage.write_to(self._resource) as storage:
            entity_synonyms_file = storage / EntitySynonymMapper.SYNONYM_FILENAME
            write_json_to_file(
                entity_synonyms_file, self.synonyms, separators=(",", ": ")
            )