void () { boolean initialValue = PyCodeInsightSettings.getInstance().PARENTHESISE_ON_ENTER; try { PyCodeInsightSettings.getInstance().PARENTHESISE_ON_ENTER = true; doTest("and hasattr(old_node, attr)"); } finally { PyCodeInsightSettings.getInstance().PARENTHESISE_ON_ENTER = initialValue; } }