void () { Project currProject = getProject(); setProject(ProjectManager.getInstance().getDefaultProject()); try { doFileTest( "class Foo{}", "class Foo {\n" + "}"); } finally { setProject(currProject); } }