protected override IQueryable <IPackage> GetAllPackages()
 {
     if (errorMessage != null)
     {
         ThrowOriginalExceptionWhenTryingToGetProjectManager();
     }
     if (project != null)
     {
         return(project.GetPackages());
     }
     return(solution.GetInstalledPackages());
 }