public static <X, Y> Ref2<X, Y> makeFirst(X first) { Ref2<X, Y> a = new Ref2(); a.setFirst(first); return a; }