code: public final boolean overlaps(long position, long size) {
          if (position + size <= this.position)
              return false;               // That is below this
          if (this.position + this.size <= position)
              return false;               // This is below that
          return true;
      }
docs: Tells whether or not this lock overlaps the given lock range.  </p>
  
  @return  <tt>true</tt> if, and only if, this lock and the given lock
  range overlap by at least one byte