Extract Parameter refactoring

The Extract Parameter refactoring is used to add a new parameter to a method declaration and update the method calls accordingly. Select an expression to be replaced with a parameter or place the caret within the expression and press &shortcut:IntroduceParameter; (Refactor | Extract | Parameter):