void () { // it is supposed that this getJavaSettings().DO_NOT_WRAP_AFTER_SINGLE_ANNOTATION_IN_PARAMETER = true; getSettings().KEEP_LINE_BREAKS = false; getSettings().RIGHT_MARGIN = 120; getSettings().WRAP_LONG_LINES = true; String before = """ public class Formatting { @RequestMapping(value = "/", method = GET) public HttpEntity<String> helloWorld(@RequestParam("name") String name, @PageableDefault(page = 0, size = 10) Pageable pageable) { // I'd expect the line above to be indented by 4 spaces return ResponseEntity.ok("Hello " + name); } }"""; String after = """ public class Formatting { @RequestMapping(value = "/", method = GET) public HttpEntity<String> helloWorld(@RequestParam("name") String name, @PageableDefault(page = 0, size = 10) Pageable pageable) { // I'd expect the line above to be indented by 4 spaces return ResponseEntity.ok("Hello " + name); } }"""; doTextTest(before, after); }