protected void simulateProjectOpen(Project p) {
ModuleManagerImpl mm = (ModuleManagerImpl)ModuleManager.getInstance(myProject);
StartupManagerImpl sm = (StartupManagerImpl)StartupManager.getInstance(myProject);
mm.projectOpened();
setUpJdk();
sm.runProjectConfigurationActivities();
sm.runStartupActivities();
// extra init for libraries
sm.runPostStartupActivities();