private void emitLength(final LengthConstraint constraint) { super.writer.startLengthNode(toLengthString(constraint.getAllowedRanges())); constraint.getErrorMessage().ifPresent(this::emitErrorMessageNode); constraint.getErrorAppTag().ifPresent(this::emitErrorAppTagNode); emitDocumentedNode(constraint); super.writer.endNode(); }