void () { getSettings().ALIGN_MULTILINE_CHAINED_METHODS = true; getSettings().METHOD_CALL_CHAIN_WRAP = CommonCodeStyleSettings.WRAP_ON_EVERY_ITEM; // it's equal to "Chop down if long" getSettings().RIGHT_MARGIN = 50; String before = "a.current.current.getThis().getThis().getThis().getThis().getThis();"; doMethodTest( before, """ a.current.current.getThis() .getThis() .getThis() .getThis() .getThis();""" ); getSettings().RIGHT_MARGIN = 80; doMethodTest(before, before); }