code: private final TickRange startOrIncludeInWriteRange(
      TickRange writeRange,
      long lowerBound,
      long upperBound,
      TickRange r)
    {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.entry(tc, "startOrIncludeInWriteRange");
  
      if (writeRange == null)
      {
        writeRange = new TickRange(TickRange.Completed, 0L, 0L);
        writeRange.startstamp = max(r.startstamp, lowerBound);
        writeRange.endstamp = min(r.endstamp, upperBound);
      }
      else
      {
        writeRange.endstamp = min(r.endstamp, upperBound);
      }
  
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        SibTr.exit(tc, "startOrIncludeInWriteRange", writeRange);
  
      return writeRange;
    }
docs: Helper method. We are given a range, writeRange, which may be null. We are
  also given a range r (which is not null), that needs to be included in writeRange.
  The constraint on the inclusion is the resulting writeRange should be in the interval
  [lowerBound, upperBound].
  @param writeRange
  @param lowerBound
  @param upperBound
  @param r
  @return The resulting writeRange