void () { getSettings().ALIGN_MULTILINE_CHAINED_METHODS = false; getSettings().METHOD_CALL_CHAIN_WRAP = CommonCodeStyleSettings.WRAP_AS_NEEDED; getSettings().RIGHT_MARGIN = 50; String before = "a.current.current.getThis().getThis().getThis().getThis();"; doMethodTest( before, "a.current.current.getThis().getThis()\n" + " .getThis().getThis();" ); getSettings().ALIGN_MULTILINE_CHAINED_METHODS = true; doMethodTest( before, "a.current.current.getThis().getThis()\n" + " .getThis().getThis();" ); getSettings().RIGHT_MARGIN = 75; doMethodTest(before, before); }