title: Can I tell PhpStorm what the return type of a function is going to be?
body: <p><a href="https://i.stack.imgur.com/U4WFS.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/U4WFS.jpg" alt="enter image description here"></a></p>
  
  <p>So if I have a function and in the PHPDoc I specify it'll return a <code>SqsProcessResult</code> object, then I call a function to create a new one of those objects but that function's PHPDoc say return type of <code>Object</code> (as it's a generic factory function) PhpStorm throws up an orange warning.</p>
  
  <p>Can I annotate or otherwise tell PhpStorm the return type will be <code>SqsProcessResult</code>?</p>