public static bool IsPartOfBridgeReact(this ITypeSymbol type) { if (type == null) throw new ArgumentNullException(nameof(type)); return type.ContainingAssembly.Identity.Name == "Bridge.React"; } }