public static bool Contains(this IAttributeCollection self, AttributeKind kind) { return(self.Any(a => a.Kind == kind)); }