How to filter a blocks toolbar added in its BlockControls?

How to filter a blocks toolbar added in its BlockControls?