title: Configuring IntelliJ IDEA to create main class for new projects
body: <p>A friend is just starting to learn Java, using IntelliJ.
  He asks how can he set up some template so creating a new project will contain a default main class.</p>
  
  <p>Currently, when he creates a new project, it has no source files, and he has to add a Run/Debug application configuration manually, and then select the main class.</p>