@Override
    int incrementalUpdate(int eventOffset, int eventOldLength, int eventNewLength, @NotNull Document document) {
      if (inUpdate) {
        if (!mergeUpdate(updates, eventOffset, eventOldLength, eventNewLength)) {
          updates.add(new DocumentUpdate(eventOffset, eventOldLength, eventNewLength, document));
        }
        return -1;
      }
      return super.incrementalUpdate(eventOffset, eventOldLength, eventNewLength, document);
    }
@Override
    int incrementalUpdate(int eventOffset, int eventOldLength, int eventNewLength, @NotNull Document document)