code: public static <T> Function<Object, T> throwAssertionError() {
      // It is safe to cast this function to have any return type, since it never returns a result.
      @SuppressWarnings("unchecked")
      Function<Object, T> function = (Function<Object, T>) THROW_ASSERTION_ERROR;
      return function;
    }
docs: A {@code Function} that always ignores its argument and throws an {@link AssertionError}.
  
  @return a {@code Function} that always ignores its argument and throws an {@code
  AssertionError}.
  @since 0.6