public static Type getArrayElementType(Type type) {
    return GenericTypeReflector.getArrayComponentType(type);
  }
@Test
  public void getArrayElementType() {
    assertThat(Reflection.getArrayElementType(int[].class)).isEqualTo(int.class);
    assertThat(Reflection.getArrayElementType(Person[].class)).isEqualTo(Person.class);

    var containerOfPerson = Types.parameterizedType(Container.class, Person.class);
    assertThat(Reflection.getArrayElementType(Types.arrayOf(containerOfPerson)))
        .isEqualTo(containerOfPerson);
  }