public static bool HasAttribute(this IMethodSymbol type, INamedTypeSymbol attribute) => type.FindAttribute(attribute) != null;