In Scala, you can use anonymous functions. Now you can generate them automatically in case if it's method call argument.
Lets, for example you have the following code:
Then use smart completion (Ctrl + Shift + Space) to see an appropriate variant:
After the completion you will get:
…