void () { CommonCodeStyleSettings.IndentOptions indentOptions = getCurrentCodeStyleSettings().getIndentOptions(JavaFileType.INSTANCE); boolean oldUseTabs = indentOptions.USE_TAB_CHARACTER; indentOptions.USE_TAB_CHARACTER = true; doTest(new JavaWithTryFinallySurrounder()); }