public static void unmapBuffer(@NotNull ByteBuffer buffer) throws Exception {
    if (!buffer.isDirect()) {
      return;
    }

    MethodHandle cleaner = ByteBufferCleaner.cleaner;
    try {
      if (cleaner == null) {
        cleaner = getByteBufferCleaner();
      }
      cleaner.invokeExact(buffer);
    }
    catch (Exception e) {
      throw e;
    }
    catch (Throwable e) {
      throw new RuntimeException(e);
    }
  }
public static void unmapBuffer(@NotNull ByteBuffer buffer)