code: public <A1, A2, T> BiFunction<A1, A2, T> getConstructor(Class<? extends T> clazz, Class<A1> arg1, Class<A2> arg2) {
          return getConstructorAs(BiFunction.class, "apply", clazz, new Class<?>[] {arg1, arg2});
      }
docs: Gets two arg constructor as BiFunction.
  @param clazz class to get constructor for.
  @param arg1 first argument class.
  @param arg2 second argument class.
  @param <T> clazz.
  @param <A1> first argument class
  @param <A2> second argument class.
  @return bifunction.