code: public static <E, T extends Collection<E>> void ifExist(T collection,
              Consumer<T> consumer) {
          getOptional(collection).ifPresent(consumer);
      }
docs: If exist.
  
  @param <E>        the type parameter
  @param <T>        the type parameter
  @param collection the collection
  @param consumer   the consumer