public static CodeClass2 FindFirstCodeClass2OrDefault(this global::EnvDTE.CodeElements codeElements, Func <CodeClass2, bool> predicate)
 {
     return(codeElements.OfType <CodeClass2>().FirstOrDefault(predicate));
 }
 public static CodeNamespace FindFirstCodeNamespaceOrDefault(this global::EnvDTE.CodeElements codeElements, Func <CodeNamespace, bool> predicate)
 {
     return(codeElements.OfType <CodeNamespace>().FirstOrDefault(predicate));
 }