code: public static void setDefaultTimeout(Duration defaultTimeout) {
          if (defaultTimeout == null) {
              throw new IllegalArgumentException("You must specify a default timeout (was null).");
          }
          defaultWaitConstraint = defaultWaitConstraint.withMaxWaitTime(defaultTimeout);
      }
docs: Sets the default timeout that all await statements will use.
  
  @param defaultTimeout the new default timeout