public IGeneroProject AddImportedModule(string path, IGeneroProjectEntry importer) { IGeneroProject refProj = null; if (!ReferencedProjects.TryGetValue(path, out refProj)) { // need to tell the genero project analyzer to add a directory to the project refProj = VSGeneroPackage.Instance.DefaultAnalyzer.AddImportedProject(path, importer); if (refProj == null) { // TODO: need to report that the project is invalid? } else { ReferencedProjects.AddOrUpdate(path, refProj, (x, y) => y); } } return(refProj); }