Tuple4OfNullablesImpl extends AbstractTupleOfNullables implements Tuple4OfNullables<T0, T1, T2, T3> { @SuppressWarnings("unchecked") @Override public Optional<T2> get2() { return Optional.ofNullable((T2) values[2]); } Tuple4OfNullablesImpl(
            T0 e0,
            T1 e1,
            T2 e2,
            T3 e3); @SuppressWarnings("unchecked") @Override Optional<T0> get0(); @SuppressWarnings("unchecked") @Override Optional<T1> get1(); @SuppressWarnings("unchecked") @Override Optional<T2> get2(); @SuppressWarnings("unchecked") @Override Optional<T3> get3();  }
@Test void get2Test() { assertEquals(2, (int) instance.get2().orElseThrow(NoSuchElementException::new)); }