How to surround code by curly braces in IntelliJ IDEA? Is there any keyboard-shortcut for such operation?
Add "Control flow statement without braces" to inspection settings. Then run inspection, select them in the list and then select "Apply Fix 'Add braces'".
It just saved me a whole days tedious work!