See if a family contains an other family, which first family is in a project

Hi, is it possible to look if a family in a Revit project contains a specific family ?


(I know it is probably a bit confusing…)

One thought: open each document and query the list of family types in each.