Given the contract of MergedBeanDefinitionPostProcessor and the AOT equivalent, we can expect that bean definitions suitable for code generation are RootBeanDefinition instances.