docs: protected void checkPausedAndWait() {
  		pauseLock.lock();
  
  		// While the status is paused, keep waiting
  		while (paused) {
  			try {
  				pausedCondition.await();
  			} catch (InterruptedException e) {
  			}
  		}
  
  		pauseLock.unlock();
  	}