code: public boolean isTouchedByRange(int globalStartIndex, int globalEndIndex) {
          return ((startIndex >= globalStartIndex) && (startIndex <= globalEndIndex))
                  || ((endIndex >= globalStartIndex) && (endIndex <= globalEndIndex))
                  || ((startIndex <= globalStartIndex) && (endIndex >= globalEndIndex));
  
      }
docs: Determines whether the specified range of start and end index touches this run.