private static bool IgnoreNodesInsideClassDeclarations(SyntaxNode node) { var kind = node?.Kind(); return kind != SyntaxKind.ClassDeclaration && kind != SyntaxKind.StructDeclaration; } }