/** * Creates a new {@link Pair} for the given elements. * * @param first must not be {@literal null}. * @param second must not be {@literal null}. * @return */ public static <S, T> Pair<S, T> of(S first, T second) { return new Pair<>(first, second); }