private void addAnyAttachments(final List<EmailAttachment<? extends DataSource>> attachments, final MimeMultipart multipart) throws MessagingException {
    """
	Adds {@link List} of {@link EmailAttachment}s to multipart.
	
	@param attachments {@link List} of {@link EmailAttachment}s to add to multipart. This can be {@code null}.
	@param multipart   {@link MimeMultipart} to set data into.
	@throws MessagingException if there is a failure.
    """
		for (final EmailAttachment<? extends DataSource> attachment : attachments) {
			final MimeBodyPart bodyPart = createAttachmentBodyPart(attachment);
			multipart.addBodyPart(bodyPart);
		}
	}
private void addAnyAttachments(final List<EmailAttachment<? extends DataSource>> attachments, final MimeMultipart multipart) throws MessagingException {
		for (final EmailAttachment<? extends DataSource> attachment : attachments) {
			final MimeBodyPart bodyPart = createAttachmentBodyPart(attachment);
			multipart.addBodyPart(bodyPart);
		}
	}
private void addAnyAttachments ( final List < EmailAttachment < ? extends DataSource > > attachments , final MimeMultipart multipart ) throws MessagingException { for ( final EmailAttachment < ? extends DataSource > attachment : attachments ) { final MimeBodyPart bodyPart = createAttachmentBodyPart ( attachment ) ; multipart . addBodyPart ( bodyPart ) ; } }
Adds {@link List} of {@link EmailAttachment}s to multipart.

@param attachments {@link List} of {@link EmailAttachment}s to add to multipart. This can be {@code null}.
@param multipart   {@link MimeMultipart} to set data into.
@throws MessagingException if there is a failure.
Adds { @link List } of { @link EmailAttachment } s to multipart .