How to reproduce:
1. Open the user’s attached ”unity-array-inspector-issue.zip” project
2. In the Hierarchy select “GameObject” GameObject
3. In the Inspector window expand “Element 0” and “Element 1” of the 1st “New Behaviour Script (Script)” Component
4. Select any of the elements and observe the view
Expected result: Just the selected element is highlighted
Actual result: Elements from both “New Behaviour Script (Script)” Components are being highlighted
Reproducible with: 2020.3.37f1, 2020.3.43f1,2020.3.27f1
Not reproducible with: 2020.3.26f1, 2021.3.0f1, 2021.3.16f1, 2022.2.21f1, 2023.1.0a24
Reproduced on: macOS 12.4 (Intel)