@Override
  protected void onInit() {
    super.onInit();

    List<VirtualFile> files = extractVirtualFiles(myRequest);
    if (!files.isEmpty()) {
      ApplicationManager.getApplication().getMessageBus().connect(this)
        .subscribe(VirtualFileManager.VFS_CHANGES, new MyBulkFileListener(files));
    }

    List<Document> documents = ContainerUtil.mapNotNull(myRequest.getContents(), (content) -> {
      return content instanceof DocumentContent ? ((DocumentContent)content).getDocument() : null;
    });
    TextDiffViewerUtil.installDocumentListeners(new MyDocumentListener(), documents, this);
  }
@Override
  protected void onInit()