I believe the documentation you're referring to (and provided a link to) is for a 3rd party add-on or library. The official Java Formatter documentation is here.