code: public static Set<Class<?>> getAllSuperTypes(final Class<?> cls) {
          final Set<Class<?>> superTypesFound = new LinkedHashSet<>();
  
          getAllSuperTypes(cls, superTypesFound);
  
          return superTypesFound;
      }
docs: Returns all the interfaces and super classes the specified class implements or extends, excluding {@code Object.class}.
  @param cls
  @return