Most of the time I used the formatter from the CAS code conventions: https://wiki.jasig.org/display/CAS/Code+Conventions. Might help having a correct indentation...