private static DiffContent createFileContent(
     @NotNull Project project, VirtualFile file, VcsFileRevision revision) {
   if (isEmpty(revision)) {
     return SimpleContent.createEmpty();
   }
   return new FileContent(project, file);
 }
 private static DiffContent createContent(
     @NotNull Project project,
     byte[] content1,
     VcsFileRevision revision,
     Document doc,
     Charset charset,
     FileType fileType,
     String filePath) {
   if (isCurrent(revision) && (doc != null)) {
     return new DocumentContent(project, doc);
   }
   if (isEmpty(revision)) {
     return SimpleContent.createEmpty();
   }
   return new BinaryContent(project, content1, charset, fileType, filePath);
 }