How to add a cache context from an existing menu?
Apparently it's:

$breadcrumb-&gt;addCacheContexts(['route.menu_active_trails:main']);


and

$breadcrumb-&gt;addCacheTags(['config:system.menu.main']);