void () { getSettings().BUILDER_METHODS = "start,addInt,addText,end"; getSettings().WRAP_FIRST_METHOD_IN_CALL_CHAIN = true; doTextTest( """ public class Test { void foo() { String result = this.nonBuilder().start().addInt().addText().end().toString(); } }""", """ public class Test { void foo() { String result = this.nonBuilder() .start() .addInt() .addText() .end().toString(); } }""" ); }