Code Completion with BeanFactory

I have hated that code completion for field names and relationships doesn't work in PHPStorm when using BeanFactory and while I have found a hundred "workarounds" over the years none have really been great.  This one is pretty close.  See the video to see what I am talking about and what I am looking at to fix it.

https://www.youtube.com/watch?v=BmyRlwd4JFY

Code from the creek...: PHPStorm and Code Completion with BeanFactory