void release() {
    final long startNs = myStats != null ? System.nanoTime() : 0;
    myItems.releaseAll();

    synchronized(this) {
      if (!myNativePeer.equals(ID.NIL)) {
        NST.releaseNativePeer(myNativePeer);
        myNativePeer = ID.NIL;
      }
    }

    if (myStats != null) {
      myStats.incrementCounter(StatsCounters.touchbarReleaseDurationNs, System.nanoTime() - startNs);
    }
  }
void release()