code: @NullSafe
    public static Thread.State getState(Thread thread) {
      return (thread != null ? thread.getState() : null);
    }
docs: A null-safe method for getting the Thread's current state.
  
  @param thread the Thread from which the state is returned.
  @return the State of the specified Thread or null if the Thread is null.
  @see java.lang.Thread#getState()
  @see java.lang.Thread.State