Requires is not added for dynamically used models.

We have code similar to this. When doing an inspection, the two models are not getting added to the requires array. If adding manually, they get marked as unused. I did a cleanup of all our requires using the code analyze, and our code started to crash as there were missing requires.