@Override
              public void run() {
                final Set<VirtualFile> files =
                  StreamEx.of(infos).map(UsageInfo::getElement).nonNull()
                    .map(PsiElement::getContainingFile).nonNull()
                    .map(PsiFile::getVirtualFile).nonNull()
                    .toCollection(LinkedHashSet::new);
                if (!FileModificationService.getInstance().prepareVirtualFilesForWrite(project, files)) return;

                final SequentialModalProgressTask progressTask = new SequentialModalProgressTask(project, JavaBundle
                  .message("action.title.infer.nullity.annotations"));
                progressTask.setMinIterationTime(200);
                AnnotateTask task = new AnnotateTask(project, progressTask, infos);
                progressTask.setTask(task);
                ProgressManager.getInstance().run(progressTask);
                myCount = task.getAddedCount();
              }
@Override
              public void run()