public function foo():String|
Caret position marked by "|". I think Smart Enter should insert braces.