private void doFinish() {
    List<HighlightInfo> highlights = myAnnotationData.stream()
      .flatMap(data ->
        ContainerUtil.notNullize(data.annotationHolder).stream().map(annotation -> HighlightInfo.fromAnnotation(data.annotator, annotation)))
      .toList();
    MarkupModelEx markupModel = (MarkupModelEx)DocumentMarkupModel.forDocument(myDocument, myProject, true);
    // use the method which doesn't retrieve a HighlightingSession from the indicator, because we likely destroyed the one already
    BackgroundUpdateHighlightersUtil.setHighlightersInRange(myRestrictRange, highlights, markupModel, getId(), getHighlightingSession());
    DaemonCodeAnalyzerEx.getInstanceEx(myProject).getFileStatusMap().markFileUpToDate(myDocument, getId());
    myHighlightInfos = highlights;
  }
private void doFinish()