You can quickly generate an initializer for a class by pressing &shortcut:Generate; and selecting Initializer. In the dialog that opens, choose the properties that should be initialized:
The new initializer will be added to the class: