public static Type getSuperType ( Type subType , Class < ? > rawSuperType ) { while ( subType != null && getRawClass ( subType ) != rawSuperType ) { subType = getSuperType ( subType ) ; } return subType ; }
Get the super type for a type in its super type chain which has a raw class that matches the specified class .