void () { // Inspired by IDEA-76050 String initial = """ class Test { \tvoid test() { \t\t<caret> \t} }"""; init(initial, JavaFileType.INSTANCE); CommonCodeStyleSettings.IndentOptions indentOptions = getCurrentCodeStyleSettings().getCommonSettings(JavaLanguage.INSTANCE).getIndentOptions(); assertNotNull(indentOptions); boolean oldUseTabs = indentOptions.USE_TAB_CHARACTER; boolean oldUseSmartTabs = indentOptions.SMART_TABS; try { indentOptions.USE_TAB_CHARACTER = true; indentOptions.SMART_TABS = true; CodeStyleSettingsManager.getInstance(getProject()).notifyCodeStyleSettingsChanged(); unindent(); checkResultByText( """ class Test { \tvoid test() { \t<caret> \t} }""" ); } finally { indentOptions.USE_TAB_CHARACTER = oldUseTabs; indentOptions.SMART_TABS = oldUseSmartTabs; } }