private ClassDeclarationSyntax RemoveAttribute(ClassDeclarationSyntax node, string attributeName) { var changedAttributeLists = RemoveAttribute(attributeName, node.AttributeLists); var newClass = node.WithAttributeLists(changedAttributeLists); return newClass; }