code: public static <X, Y> Pair<X, Y> makePair(X x, Y y) {
      return new Pair<X, Y>(x, y);
    }
docs: Returns a Pair constructed from X and Y.  Convenience method; the
  compiler will disambiguate the classes used for you so that you
  don't have to write out potentially long class names.