docs: public void stop() {
      if (thread != null) {
        thread.interrupt();
      }
      try {
        thread.join();
      } catch (@javax.annotation.Nonnull final InterruptedException e) {
        Thread.currentThread().interrupt();
      }
    }