code: private static Class<?>[] getTypes(Object[] arguments) {
          Class<?>[] classes = new Class<?>[arguments.length];
          for (int i = 0; i < arguments.length; i++) {
              classes[i] = getType(arguments[i]);
          }
          return classes;
      }
docs: Gets the types.
  
  @param arguments the arguments
  @return the types