code: @NullSafe
    public static void interrupt(Thread thread) {
      Optional.ofNullable(thread).ifPresent(Thread::interrupt);
    }
docs: Null-safe operation to interrupt the specified Thread.
  
  @param thread the Thread to interrupt.
  @see java.lang.Thread#interrupt()