public static IEnumerable<NameAndLocation> ItemsToIgnoreFromAttributes(ISymbol symbol,
IEnumerable<Type> attributes) =>
symbol.GetAttributes()
.Where(a => attributes.TryFirst(t => MatchAttributeName(t, a.AttributeClass.Name)).HasValue)
.SelectMany(attribute =>
(attribute.ApplicationSyntaxReference.GetSyntax() as AttributeSyntax).ArgumentList
.Arguments)
.Select(argument => new NameAndLocation(argument.ToString().Trim('"'), argument.GetLocation()));