The following keeps optionals correctly:
.. however if we manually add underscore to identifiers, optionals are gone:
Note that this still work within a method declaration (so, it seems like an issue narrowed down to converting partial code / selection):
+See also ShouldNotUnwrapNonOptionalPropertyInOptionalGetterChain() unit test.
Add underscores to `_navigationController` to reproduce.
I have also seen this issue when reviewing issues in the Sketch project, when a setXXX method is not translated to a property setter.
Update: seems unrelated to this task, and I can’t easily find which of the setXXX methods should be property accessors.