How to reproduce:
1. Create a new 2D URP project
2. Install Unity AI
3. Create a custom Editor script that inherits from the Editor Class
4. Save the script and observe console
Expected result: The script compiles without errors
Actual result: an error is present "error CS0118: 'Editor' is a namespace but is used like a type"
Workaround: Specify the name fully with "UnityEditor.Editor" instead of "Editor"