Live Templates allow you to generate many typical code constructs in seconds. For example, type

in a method and press the Tab key to see what happens.

Use the Tab key to move between the template fields.

You can configure live templates on the Editor | Live Templates settings/preferences page.