void () { CommonCodeStyleSettings settings = getCodeStyleSettings(); boolean lParenOnNextLine = settings.CALL_PARAMETERS_LPAREN_ON_NEXT_LINE; boolean rParenOnNextLine = settings.CALL_PARAMETERS_RPAREN_ON_NEXT_LINE; try { settings.CALL_PARAMETERS_LPAREN_ON_NEXT_LINE = true; settings.CALL_PARAMETERS_RPAREN_ON_NEXT_LINE = true; doTest(); } finally { settings.CALL_PARAMETERS_LPAREN_ON_NEXT_LINE = lParenOnNextLine; settings.CALL_PARAMETERS_RPAREN_ON_NEXT_LINE = rParenOnNextLine; } }