code: protected Class<?> getArrayElementType(Class<?> clazz, int depth) {
          for (int i = 0; i < depth; i++) {
              clazz = clazz.getComponentType();
          }
          return clazz;
      }
docs: ------------