void () { getSettings().METHOD_CALL_CHAIN_WRAP = CommonCodeStyleSettings.WRAP_ALWAYS; doTextTest( """ public class Test { void foo() { String zozo = List.<String>of("titi", "toto", "tutu").stream().filter(it -> it.contains("i")) .findAny().<String>map(it -> it.replaceFirst("t", "l")).orElse("zozoggrezgzee"); } }""", """ public class Test { void foo() { String zozo = List.<String>of("titi", "toto", "tutu") .stream() .filter(it -> it.contains("i")) .findAny() .<String>map(it -> it.replaceFirst("t", "l")) .orElse("zozoggrezgzee"); } }""" ); }