Vector v = getPositionsInRange(null, newGapStart, gapStart - newGapStart); for (Iterator i = v.iterator(); i.hasNext();) { GapContentPosition p = (GapContentPosition) i.next(); p.mark = gapStart; }
setPositionsInRange(newGapStart, gapStart - newGapStart, gapStart);
  protected void shiftGapStartDown(int newGapStart)  {    if (newGapStart == gapStart)      return;    assert newGapStart < gapStart : "The new gap start must be less than the "                                    + "old gap start.";    Vector v = getPositionsInRange(null, newGapStart, gapStart - newGapStart);    for (Iterator i = v.iterator(); i.hasNext();)      {        GapContentPosition p = (GapContentPosition) i.next();        p.mark = gapStart;      }    gapStart = newGapStart;  }