private static @Nullable MethodHandle findAddress() {
    MethodHandle address = null;
    try {
      if (JavaVersion.current().feature >= 9) {
        Class<?> directBufferClass = Class.forName("sun.nio.ch.DirectBuffer");
        address = MethodHandles.lookup().findVirtual(directBufferClass,
                                                     "address",
                                                     MethodType.methodType(long.class));
      }
    }
    catch (Throwable ignored) {
    }
    return address;
  }
private static @Nullable MethodHandle findAddress()