code: public Class<?> getArrayType(Class<?> clazz) {
  
          if (clazz.isArray()) {
              return getArrayType(clazz.getComponentType());
          }
  
          return clazz;
      }
docs: Returns the array type.  Returns the specified class if it is not an
  array.