code: public static boolean isTypeOrSubTypeOf(Type subType, Type superType) {
          Class<?> sub = getRawClass(subType);
          Class<?> sup = getRawClass(superType);
  
          return sup.isAssignableFrom(sub);
      }
docs: Determines if a type is the same or a subtype for another type.
  
  @param subType the supposed sub type
  @param superType the supposed super type
  @return true if the first type is the same or a subtype for the second type