You can use the Extract Variable refactoring even on incomplete statements. Press &shortcut:IntroduceVariable; and choose an expression.

Extract variable in an incomplete statement