Templates are structured descriptions of the often-used fragments of the source code. IntelliJ IDEA suggests the following types of templates:
IntelliJ IDEA comes with the set of predefined templates of all types. You can examine these templates, and create your own ones.