Is there a special reason why ClassPathScanningCandidateComponentProvider.addCandidateComponentsFromIndex does create AnnotatedGenericBeanDefinitions while scanCandidateComponents creates ScannedGenericBeanDefinitions?

Without this ScannedGenericBeanDefinitions in ConfigurationClassBeanDefinitionReader.isOverriddenByExistingDefinition the bean definitions created from the index are treated different than the scanned bean definitions and overriding no longer works.