code: public static MethodHandle methodHandle(StandardErrorCode errorCode, Method method)
      {
          try {
              return MethodHandles.lookup().unreflect(method);
          }
          catch (IllegalAccessException e) {
              throw new PrestoException(errorCode, e);
          }
      }
docs: Returns a MethodHandle corresponding to the specified method.
  <p>
  Warning: The way Oracle JVM implements producing MethodHandle for a method involves creating
  JNI global weak references. G1 processes such references serially. As a result, calling this
  method in a tight loop can create significant GC pressure and significantly increase
  application pause time.