code: private synchronized static void releaseWakeLock() {
          if (sWakeLock != null) {
              if (sWakeLock.isHeld()) {
                  sWakeLock.release();
  
                  // Clear static reference if the lock is no longer held after the release() call.
                  if (!sWakeLock.isHeld()) {
                      sWakeLock = null;
                  }
              } else {
                  // The lock is not held, just clear the static reference.
                  sWakeLock = null;
              }
          }
  
          sLogger.log(WingsService.class, "releaseWakeLock", "sWakeLock=" + sWakeLock);
      }
docs: Releases the wake lock if one is held.