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