void (LanguageLevel languageLevel) { LanguageLevel prev = myLanguageLevel; myLanguageLevel = languageLevel; try { doTest(true); } finally { myLanguageLevel = prev; } ensureEachFunctionHasStatementList(myFile, PyFunction.class); }