code: private static Class getArrayBaseType(Class array) {
          while (array.isArray()) {
              array = array.getComponentType();
          }
          return array;
      }
docs: Get the array base type
  
  @param array
  @return