void () { final JsonCodeStyleSettings settings = getCustomCodeStyleSettings(); final CommonCodeStyleSettings.IndentOptions indentOptions = getIndentOptions(); final int oldPropertyAlignment = settings.PROPERTY_ALIGNMENT; final int oldIndentSize = indentOptions.INDENT_SIZE; settings.PROPERTY_ALIGNMENT = JsonCodeStyleSettings.ALIGN_PROPERTY_ON_VALUE; indentOptions.INDENT_SIZE = 4; try { doTest("\n"); } finally { indentOptions.INDENT_SIZE = oldIndentSize; settings.PROPERTY_ALIGNMENT = oldPropertyAlignment; } }