code: private Class<?>[] getClassList(List<Object> objects) {
          Class<?>[] classes = new Class<?>[objects.size()];
          for (int i = 0; i < objects.size(); i++) {
              classes[i] = objects.get(i).getClass();
          }
          return classes;
      }
docs: Returns a list containing the classes of the elements in the given object list as array.