private static bool TargetTypeIsSelectAttributes(ObjectCreationExpressionSyntax objectCreation, SyntaxNodeAnalysisContext context) { if (objectCreation == null) throw new ArgumentNullException(nameof(objectCreation)); var typeToCreate = context.SemanticModel.GetTypeInfo(objectCreation); return (typeToCreate.Type != null) && typeToCreate.Type.IsPartOfBridgeReact() && (typeToCreate.Type.Name == "SelectAttributes"); }