Intellij is too dumb to recognize optionalFunction?(arg: foo)