void () { super.onInit(); BulkFileListener fileListener = createFileListener(myRequest); if (fileListener != null) { ApplicationManager.getApplication().getMessageBus().connect(this) .subscribe(VirtualFileManager.VFS_CHANGES, fileListener); } DocumentListener documentListener = createDocumentListener(); List<Document> documents = ContainerUtil.mapNotNull(myRequest.getContents(), (content) -> content instanceof DocumentContent ? ((DocumentContent)content).getDocument() : null); TextDiffViewerUtil.installDocumentListeners(documentListener, documents, this); }