void () { CommonCodeStyleSettings.IndentOptions indentOptions = getSettings().getIndentOptions(); indentOptions.INDENT_SIZE = 3; indentOptions.CONTINUATION_INDENT_SIZE = 3; getSettings().ALIGN_MULTILINE_CHAINED_METHODS = true; RegistryValue pre212compat = Registry.get(LegacyChainedMethodCallsBlockBuilder.COMPATIBILITY_KEY); try { pre212compat.setValue(true); doTextTest( """ class Foo { void foo() { LOG.error(DetailsMessage.of( "TITLE", "LONG MESSAGE TEXT...") .with("value", value)); } }""", """ class Foo { void foo() { LOG.error(DetailsMessage.of( "TITLE", "LONG MESSAGE TEXT...") .with("value", value)); } }""" ); } finally { pre212compat.setValue(false); } }