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