Refactor everything into folders and packages.
astyle

--style=java
--attach-classes
--attach-inlines
--indent=spaces=2
--indent-switches
--pad-oper
--pad-header
--add-brackets
--keep-one-line-blocks
--keep-one-line-statements
--convert-tabs