void () { CommonCodeStyleSettings.IndentOptions options = CodeStyle.getSettings(getProject()).getIndentOptions(JavaFileType.INSTANCE); int indent = options.INDENT_SIZE; options.INDENT_SIZE = 10; try { doTest("Bounds"); } finally { options.INDENT_SIZE = indent; } }