Graphic Override Just the Elements in Family with Specific Material

I have seen how to extract the materials used in a selection of elements.

Is there a way to change the appearance of only the primitives (extrusions, blends, etc.) inside a family that have a specific material assigned to them?

Roughly, I would like all the parts inside of the families that have the material “Glass” assigned to them to have a thick blue outline.

Thank you!