'Immediate' window for IntelliJ
Same as @Noel answer, but some more details. First of all, Expression Evaluation (ALT + F8) can be enabled only in debug mode.
Intellij IDEA's Expression Evaluation dialog has a button to enable Code Fragment Mode, which permits multi-statement evaluations. (I'm using version 9.0.2 of the Ultimate Edition.)