I know that this is not welcome here, but my only answer is that I can refer you to the following plugin.
The plugin was released a few weeks ago and finds exactly the blocks used for your installation.
Exactly what you need.
I know that this is not welcome here, but my only answer is that I can refer you to the following plugin.
The plugin was released a few weeks ago and finds exactly the blocks used for your installation.
Exactly what you need.