The Extract Variable refactoring helps you simplify complicated statements in your code. For example, in the code fragment below, you can select an expression in the code:

Extract variable

Press &shortcut:IntroduceVariable; (Refactor | Extract | Variable) and provide the variable's name. This will result in the following:

Extract variable