JPanel (@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); }