public void OnVisitSyntaxNode(SyntaxNode syntaxNode) { if (syntaxNode is not TypeDeclarationSyntax classSyntax) { return; } if (MvcFacts.CanBeController(classSyntax)) { PossibleControllers.Add(classSyntax); } }