Looking for workflow or plug-in(s) to find instances that've had master components deleted

Anyone cracked this challenge?

I’m trying to fix a file with many screens, using many components, some of which are missing the original master components as they’ve been deleted.

With so many screens, and many components in each, doing this manually will take some time.

I’m keen for any tips from people who have already solved something similar!