JetBrains/kotlin — pull request #366 by zgrannan (2014-02-09 17:49:36+00:00)
Title: elvis -> if-then and if-then -> elvis intentions

Added an intention to convert an expression of the form

foo?.bar()

to the form

if (foo != null) foo.bar() else null

and vice versa.

If the expression of the left hand side of the elvis operator is a function call, the IDE will create
a temporary value to store the result of the call, and prompt the user for a name of the value.
i.e an elvis expression of the form:

foo()?.bar

could be converted to the form

val temp = foo()
if (temp != null) temp.bar() else null