void (@Nullable CommonCodeStyleSettings.IndentOptions defaultIndentOptions, int expectedIndent) { if (defaultIndentOptions != null) { setIndentOptions(defaultIndentOptions); } CommonCodeStyleSettings.IndentOptions options = detectIndentOptions(getVFile(), getEditor().getDocument()); Assert.assertFalse("Tab usage detected: ", options.USE_TAB_CHARACTER); Assert.assertEquals("Indent mismatch", expectedIndent, options.INDENT_SIZE); }