void (String before, String after) { SmartBackspaceMode savedMode = CodeInsightSettings.getInstance().getBackspaceMode(); try { CodeInsightSettings.getInstance().setBackspaceMode(SmartBackspaceMode.INDENT); configureFromFileText(getTestName(false) + ".txt", before); executeAction(IdeActions.ACTION_EDITOR_BACKSPACE); checkResultByText(after); } finally { CodeInsightSettings.getInstance().setBackspaceMode(savedMode); } }