private int indexOf(PsiBuilderImpl.ProductionMarker marker) {
    int idx = findLinearly(marker.markerId);
    if (idx < 0) {
      for (int i = findMarkerAtLexeme(marker.getLexemeIndex(false)); i < size; i++) {
        if (a[i] == marker.markerId) {
          idx = i;
          break;
        }
      }
    }
    if (idx < 0) {
      LOG.error("Dropped or rolled-back marker");
    }
    return idx;
  }
private int indexOf(PsiBuilderImpl.ProductionMarker marker)