void () { CodeStyleSettings settings = CodeStyle.createTestSettings(); CommonCodeStyleSettings.IndentOptions indentOptions = settings.getIndentOptions(); assertNotNull(indentOptions); indentOptions.INDENT_SIZE = 2; indentOptions.TAB_SIZE = 4; CodeStyleSettingsManager.getInstance(getProject()).setTemporarySettings(settings); try { doTest("\t<caret>text", " <caret>text"); } finally { CodeStyleSettingsManager.getInstance(getProject()).dropTemporarySettings(); } }