Filtering template lists

In the Metal and Ice library you can filter the instruments by category. I’m curious, does anyone have a clue about how this was achieved and if it can be taken further with multiple filters?

I’m not sure but it looks like it could be a custom multi level menu.

Not 100% what I had in mind, but it will do. Thanks.