public static CodeNamespace LastCodeNamespaceOrDefault(this CodeElements codeElements)
 {
     return(codeElements.LastOrDefault() as CodeNamespace);
 }
 public static CodeClass2 LastCodeClass2OrDefault(this CodeElements codeElements)
 {
     return(codeElements.LastOrDefault() as CodeClass2);
 }