Umbraco 15 - manipulating content tree menu items

Hi,
I am working on a migration from version 13 to 15.
In my current project, i use the MenuRenderingNotification to remove some or all of the menu items for specific document types in the content tree.
I understand that this notification does not exist anymore in version 15 and that this behavior can be implemented using a ui extension.
can anyone provide an example for such implementation?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115181-umbraco-15-manipulating-content-tree-menu-items