Eclipse users may download this preferences file:
ApacheUima_EclipseCodeStylePrefs.xml
and import this into Eclipse. (Window->Preferences, go to Java->Code Style->Formatter and click "Import...").
Once you have done this you can reformat your code by using Source->Format (Ctrl+Shift+F).
Also note that Eclipse will automatically format your import statements appropriately when you
invoke Source -> Organize Imports (Ctrl+Shift+O).