It would be nice to be able to add filters to the reference resolver. Here is a good example of what it should look like