Migrate S1165 to SyntaxTree