code: public static Class<?>[] getAllInterfaces(Class<?> clz) {
      HashSet<Class<?>> set = new HashSet<>();
      getAllInterfaces(clz, set);
      return set.toArray(new Class<?>[set.size()]);
    }
docs: Get all interfaces
  
  @param clz
  @return