code: public LongPressOptions withDuration(Duration duration) {
          checkNotNull(duration);
          checkArgument(duration.toMillis() >= 0,
                  "Duration value should be greater or equal to zero");
          this.duration = duration;
          return this;
      }
docs: Set the long press duration.
  
  @param duration the value to set.
  Time resolution unit is 1 ms.
  @return this instance for chaining.