Reproduction steps:
1. Open the attached “BugRepro” project
2. Select the "TestObject" GameObject in the Hierarchy window
3. In the Inspector window, find the "ChildClass" component and click on its header with right mouse button
4. In the opened menu, select the "Call ContextMenuMethod" option
5. Observe the Console window
Expected result: "ChildClass' ContextMenuMethod called!" message is logged
Actual result: "BaseClass' ContextMenuMethod called!" warning is logged
Reproducible with: 2022.3.65f1, 6000.0.55f1, 6000.2.0b11, 6000.3.0a4
Reproducible on: Windows 11
Not reproducible on: No other environment tested