if (mask != null) {
maskBytes = decodeValue(type, mask);
length = Math.max(patternBytes.length, maskBytes.length);
}
MagicDetector detector = new MagicDetector(
mediaType, patternBytes, maskBytes, start, end);
Clause clause = new MagicMatch(detector, length);
List<Clause> subClauses = readMatches(element, mediaType);
if (subClauses.size() == 0) {