private static IEnumerable <ICSharpFile> GetAllCSharpFilesInProject(IPsiModule projectModule) { PsiManager psiManager = projectModule.GetPsiServices().PsiManager; return(projectModule.SourceFiles.SelectMany(f => psiManager.GetPsiFiles <CSharpLanguage>(f).OfType <ICSharpFile>())); }