if (project == null || !project.equals(newProject)) {
//we have a new project. reset the type hierarchy
if (monitor != null)
monitor.subTask("Creating new type hierarchy");
project = newProject;
hierarchy = new CachedTypeHierarchy(project);
FreeVars.setHierarchy(hierarchy);
}
}