Doing so would increase the consistency between Java BeanRegistrar and Kotlin BeanRegistrarDsl, and would provide first class support for registering/retrieving beans with generic types.

Comment From: quaff

GH-34687 is related.