PR #34917 improved ImportsContextCustomizer by switching to use MergedAnnotations.search but we couldn't merge it into 2.7 because the new API didn't exist and it wasn't strictly necessary to fix the bug. It's still a worthwhile change that we can make in 3.2.