@Nullable
  public static JPanel createEqualContentsNotification(@NotNull List<? extends DocumentContent> contents) {
    boolean isPartialPreview = ContainerUtil.exists(contents, content ->
      FileDocumentManager.getInstance().isPartialPreviewOfALargeFile(content.getDocument()));
    if (isPartialPreview) return null;

    boolean equalCharsets = areEqualCharsets(contents);
    boolean equalSeparators = areEqualLineSeparators(contents);
    return DiffNotifications.createEqualContents(equalCharsets, equalSeparators);
  }
@Nullable
  public static JPanel createEqualContentsNotification(@NotNull List<? extends DocumentContent> contents)