void () { getSettings().ALIGN_MULTILINE_CHAINED_METHODS = true; getSettings().METHOD_CALL_CHAIN_WRAP = CommonCodeStyleSettings.WRAP_ALWAYS; doMethodTest( "a.current.current.current.getThis().getThis().getThis();", """ a.current.current.current.getThis() .getThis() .getThis();""" ); doMethodTest( "a.current.current.current.getThis().getThis().getThis().current.getThis().getThis().getThis().getThis();", """ a.current.current.current.getThis() .getThis() .getThis().current.getThis() .getThis() .getThis() .getThis();""" ); String onlyMethodCalls = "getThis().getThis().getThis();"; String formatedMethodCalls = "getThis().getThis()\n" + " .getThis();"; doMethodTest(onlyMethodCalls, formatedMethodCalls); }