code: public static List<Class<?>> getSuperclasses(Class<?> clazz) {
          return getSuperclassesAsStream(clazz).collect(Collectors.toList());
      }
docs: Get all superclasses of the given class.
  If the given class is an interface, the result will be empty.
  The given class will not be included in the result.
  
  @param clazz The class to get the superclasses for.
  @return The superclasses of the given class.