Doubt if this is a typo as a method convert a instance to its self type

when i do debug, i see that this convertToGroupImpl converts a GroupImpl to GroupImpl, so i doubt if this is a typo?