At present, the setting java.cleanup.actionsOnSave is supported, which can run a set of cleanup actions on document save.
The upstream now supports java.cleanup.actions, which is triggered manually.
IMO cleanup actions is very necessary but in many cases should not be triggered on save, since some files are very low-level and should not be easily modified.
So vscode-java added a new setting that supported manually trigger cleanup acions: redhat-developer/vscode-java#3424
Is it possible to allow manually triggering in coc-java?