@Deprecated
  public static Type resolveLastTypeParameter(Type genericContext, Class<?> supertype)
      throws IllegalStateException {
    return Types.resolveLastTypeParameter(genericContext, supertype);
  }
@Test
  void lastTypeFromAnonymous() throws Exception {
    Parameterized<?> instance = new Parameterized<Reader>() {};
    Type last = resolveLastTypeParameter(instance.getClass(), Parameterized.class);
    assertThat(last).isEqualTo(Reader.class);
  }