There are few plugins availabe free and paid which we can use with Phpstorm.

https://magento.stackexchange.com/questions/166806/what-are-the-top-useful-phpstorm-plugins-for-magento-2-development

 

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.