docs: public boolean checkAndReturn() {
          // Check if any thread has been interrupted
          if (interrupted.get()) {
              // If so, interrupt this thread
              interrupt();
              return true;
          }
          // Check if this thread has been interrupted
          if (Thread.currentThread().isInterrupted()) {
              // If so, interrupt other threads
              interrupted.set(true);
              return true;
          }
          return false;
      }