void () { CommonCodeStyleSettings settings = getJavaSettings(); boolean use_tab_character = settings.getIndentOptions().USE_TAB_CHARACTER; boolean smart_tabs = settings.getIndentOptions().SMART_TABS; int old = settings.IF_BRACE_FORCE; try { settings.getIndentOptions().USE_TAB_CHARACTER = true; settings.getIndentOptions().SMART_TABS = true; settings.IF_BRACE_FORCE = CommonCodeStyleSettings.FORCE_BRACES_IF_MULTILINE; doTest(); } finally { settings.getIndentOptions().USE_TAB_CHARACTER = use_tab_character; settings.getIndentOptions().SMART_TABS = smart_tabs; settings.IF_BRACE_FORCE = old; } }