public static CodeNamespace Using(this CodeNamespace @this, params string[] usings) { foreach (var @using in usings) { var hasUsing = @this.HasUsing(@using); if (!hasUsing) { @this.Imports.Add(new CodeNamespaceImport(@using)); } } return(@this); }