code: @Nonnull
      public static <A, B> Pair<A, B> of(A left, B right) {
          return new Pair<>(left, right);
      }
docs: Constructor method to utilize type inference.
  @param left first component
  @param right second component
  @param <A> type of the first component
  @param <B> type of the second component
  @return the pair