intellij to add a constructor code example Example: calling constructor in intellij idea to call directly construcor or press ⌘N or Alt+Insert