void () { AccessModifier previous = myTool.highestModifier; myTool.highestModifier = AccessModifier.PUBLIC; try { doTest(getTestDir(), myTool, false, true); } finally { myTool.highestModifier = previous; } }