Would be nice to add a `getContainingByName` or something, I've seen this matching pattern a lot of places.