private static Attributes GetModuleAttributes(IComType module) { var attributes = new Attributes(); if (module.IsPreDeclared) { attributes.AddPredeclaredIdTypeAttribute(); } if (module.IsAppObject) { attributes.AddGlobalClassAttribute(); } if (module is IComTypeWithMembers members && members.IsExtensible) { attributes.AddExtensibleClassAttribute(); } return(attributes); }