private static bool HasIgnoreRuleAttribute(ISymbol symbol, IEnumerable<Type> attributes) => symbol.GetAttributes() .Any(s => attributes.TryFirst(t => MatchAttributeName(t, s.AttributeClass.Name)).HasValue);