private @NotNull DocumentContent build(@NotNull Document document, @NotNull TextContent textContent) {
      DocumentContent documentContent = new ContextReferentDocumentContent(project, document, textContent, context);

      VirtualFile file = FileDocumentManager.getInstance().getFile(document);
      if (file != null && !file.isInLocalFileSystem()) {
        OutsidersPsiFileSupport.markFile(file, originalFilePath != null ? originalFilePath : null);
      }

      if (fileName != null) {
        documentContent.putUserData(DiffUserDataKeysEx.FILE_NAME, fileName);
      }

      if (textContent.notification != null) {
        DiffUtil.addNotification(textContent.notification, documentContent);
      }

      return documentContent;
    }
private @NotNull DocumentContent build(@NotNull Document document, @NotNull TextContent textContent)