boolean (@NotNull List<? extends DiffContent> contents) { boolean sameCharset = areEqualDocumentContentProperties(contents, DocumentContent::getCharset); boolean sameBOM = areEqualDocumentContentProperties(contents, DocumentContent::hasBom); return sameCharset && sameBOM; }