private static bool IsAnyOrUnionReactElementOrStringArray(ITypeSymbol type)
{
if (type == null)
throw new ArgumentNullException(nameof(type));
var arrayType = type as IArrayTypeSymbol;
if (arrayType == null)
return false;
var elementType = arrayType.ElementType as INamedTypeSymbol;
return (elementType != null) && (elementType.Arity == 2) && (IsBridgeClass(elementType, "Any") || IsBridgeClass(elementType, "Union"));
}