void () { CommonCodeStyleSettings settings = CodeStyle.getSettings(getProject()).getCommonSettings(JavaLanguage.INSTANCE); boolean opSignOnNextLine = settings.BINARY_OPERATION_SIGN_ON_NEXT_LINE; try { settings.BINARY_OPERATION_SIGN_ON_NEXT_LINE = true; doTest(); } finally { settings.BINARY_OPERATION_SIGN_ON_NEXT_LINE = opSignOnNextLine; } }