private TypeAttributes GetTypeVisibilityAttributes(TypeMember type) { return type.IsPublic ? TypeAttributes.Public : TypeAttributes.NotPublic; }