I am using IntelliJ code style format definition published at
Or if you want to edit the code style XML directly, you can add:
<option name="SPACE_WITHIN_BRACES" value="true" />
in the block
<codeStyleSettings language="JAVA">
...
</codeStyleSettings>