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