code: public static <T> Class<?>[] getClasses(Type[] types) {
          if (types == null)
              return null;
          if (types.length == 0)
              return new Class<?>[0];
  
          Class<?>[] classes = new Class[types.length];
          // Resolve types by chasing down type variables.
          for (int i = 0; i < types.length; i++) {
              classes[i] = getClass(types[i]);
          }
          return classes;
      }
docs: Get the underlying class array for a type array, or null if the type is a variable
  type.
  
  @param types the type array
  @return a class array of the raw classes for actual the type arguments.