assert Thread.holdsLock(avResults);
  private int getIndexOfType(int aspectType) {    if (aspectType == _lasttype) return _lastindex; // Use memoized value    for (int i = 0 ; i < avResults.length; i++) {      if (avResults[i].getAspectType() == aspectType) return i;    }    return -1;  }