code: public static void setDefaultTimeout(long timeout, TimeUnit unit) {
          defaultWaitConstraint = defaultWaitConstraint.withMaxWaitTime(new Duration(timeout, unit));
      }
docs: Sets the default timeout all await statements will use.
  
  @param timeout the timeout
  @param unit    the unit