void (@NonNls FileType fileType, Runnable action) { CommonCodeStyleSettings.IndentOptions indentOptions = mySettings.getIndentOptions(null); indentOptions.USE_TAB_CHARACTER = true; indentOptions.INDENT_SIZE = 4; indentOptions.TAB_SIZE = 4; indentOptions.CONTINUATION_INDENT_SIZE = 4; UISettings.getInstance().setFontFace("Tahoma"); UISettings.getInstance().setFontSize(11); EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); scheme.setEditorFontName("Tahoma"); scheme.setEditorFontSize(11); String path = "/codeInsight/editing/before" + getTestName(false) + "."+fileType.getDefaultExtension(); configureByFile(path); assertFileTypeResolved(fileType, path); action.run(); checkResultByFile("/codeInsight/editing/after" + getTestName(false) + "."+fileType.getDefaultExtension()); }