The Extract Variable refactoring helps you simplify complicated statements in your code.

For example, in the code fragment below, you could select an expression in the code

and press &shortcut:IntroduceVariable; (Refactor | Extract Variable).

This will result in the following:

You can also introduce defines, constants, macros, typedefs and parameters.