void (boolean enabled, int margin) { boolean initialValue = PyCodeInsightSettings.getInstance().PARENTHESISE_ON_ENTER; try { PyCodeInsightSettings.getInstance().PARENTHESISE_ON_ENTER = enabled; doTestWithMargin(margin); } finally { PyCodeInsightSettings.getInstance().PARENTHESISE_ON_ENTER = initialValue; } }