code: @Deprecated
    public static <T> @NonNull Optional<T> or(final @NonNull Optional<? extends T> optional, final @NonNull Supplier<? extends Optional<? extends T>> supplier) {
      if(optional.isPresent()) {
        return (Optional<T>) optional;
      }
      return (Optional<T>) supplier.get();
    }
docs: Returns {@code optional} if a value is present within it, otherwise returns an {@code Optional} provided by {@code supplier}.
  
  @param optional the optional
  @param supplier the supplier
  @param <T> the type
  @return an optional
  @deprecated use {@link Optional#or(Supplier)}