Getting the generics of a superclass can be accomplished by calling the getGenericSuperclass() method of the current class:
Type superclassType = clazz.getGenericSuperclass();
Calling printGenerics(superclassType) will output the following:
Class of type argument: class java.lang.String
Simple name of type argument: String
Class of type argument: class modern.challenge.Seed
Simple name of type argument: Seed