For those who came here from google.
PHPStorm actually provides a way to solve this kind of problem instead of writing PHPDocs over and over again — creating and setting .phpstorm.meta.php
file in a way described here gains smoothly working autocomplete and type inspections.