There are few plugins availabe free and paid which we can use with Phpstorm.
Learn sett up the code sniffer
https://mirasvit.com/blog/guide-for-setting-up-phpstorm-for-magento-2-developments.html
Few Plugins
https://plugins.jetbrains.com/plugin/8024-magento-phpstorm
https://github.com/magento/magento2-phpstorm-plugin
Yes, place cursor on $model2 , then press Alt + Enter and choose option Initialize field.