def METHOD_NAME(self, classes):
    """Called after adding or updating entity classes.
    Stores display_icons and clears obsolete entries
    from the relationship class and entity group renderer caches."""
    for class_ in classes:
        self.display_icons[class_["name"]] = class_["display_icon"]
    class_names = [x["name"] for x in classes]
    dirty_keys = [k for k in self._rel_cls_renderers if any(x in class_names for x in k)]
    for k in dirty_keys:
        del self._rel_cls_renderers[k]
    for name in class_names:
        self._group_renderers.pop(name, None)
        self._class_renderers.pop(name, None)