Change Method Signature

Refactor the signature of a method

Press ⌘F6 (macOS) / Ctrl+F6 (Windows/Linux), to bring up the Change Signature dialog. You can add or remove method parameters here.

You can use ⌘N (macOS) / Alt+Insert (Windows/Linux), to add a new parameter.

Related Resources

Extract Method
Extract code to a new method
Inline Variable
Inline a variable in your code
Introduce variable
Refactor your code and introduce a new variable