public static <T1, T2> Pair<T1, T2> newPair(T1 a, T2 b) {
    return new Pair<>(a, b);
  }
Constructs a new pair, inferring the type via the passed arguments
@param <T1> type for first
@param <T2> type for second
@param a    first element
@param b    second element
@return a new pair containing the passed arguments
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Pair.java