code: public static Class<?>[] getAllInterfacesForClass(Class<?> clazz, ClassLoader classLoader) {
          Set<Class<?>> ifcs = getAllInterfacesForClassAsSet(clazz, classLoader);
          return ifcs.toArray(new Class<?>[ifcs.size()]);
      }
docs: Return all interfaces that the given class implements as array,
  including ones implemented by superclasses.
  <p>If the class itself is an interface, it gets returned as sole interface.
  
  @param clazz       the class to analyze for interfaces
  @param classLoader the ClassLoader that the interfaces need to be visible in
  (may be {@code null} when accepting all declared interfaces)
  @return all interfaces that the given object implements as array