public static Class<?> toRawType(Type type) {
    return GenericTypeReflector.erase(type);
  }
@Test
  public void toRawType() {
    var type = Types.listOf(Person.class);

    assertThat(Reflection.toRawType(type)).isEqualTo(List.class);
    assertThat(Reflection.toRawType(List.class)).isEqualTo(List.class);
  }