static bool IsReferenced (Project project, Project referencedProject) { return project == referencedProject || project.GetReferencedItems (IdeApp.Workspace.ActiveConfiguration).Contains (referencedProject); }