docs: private Snapshot avoidBeatPacket() {
          Snapshot playState = getPlaybackPosition();
          double distance = playState.distanceFromBeat();
          while (playing.get() &&
                  (((distance < 0.0) && (Math.abs(distance) <= BeatSender.SLEEP_THRESHOLD)) ||
                  ((distance >= 0.0) && (distance <= (BeatSender.BEAT_THRESHOLD + 1))))) {
              try {
                  Thread.sleep(2);
              } catch (InterruptedException e) {
                  logger.warn("Interrupted while sleeping to avoid beat packet; ignoring.", e);
              }
              playState = getPlaybackPosition();
              distance = playState.distanceFromBeat();
          }
          return playState;
      }