void () { for (String callText : List.of("noArg()", "singleArg(1)", "singleArg(new Object())", "singleArg {}", "singleArg([:])", "doubleArg([:]) {}", "doubleArg(1, 2)", "doubleArg([], {})", "doubleArg(new Object[0]) {}", "doubleArg(new Object[0], {})", "varArg(1, 2, 3)", "varArg(1, 2d, '')", "varArg(new Object(), [], {}, a: 1, 2d, [:], '')")) { for (String text : List.of("builder.root {<caret>" + callText + "}", "builder.root(a: 1, b: 2) {<caret>" + callText + "}", "builder.root([1, 2, 3, 4]) {<caret>" + callText + "}", "builder.root([] as Integer[], {<caret>" + callText + "})")) { doTest(text); } } }