def METHOD_NAME(
    foirequest: FoiRequest, case: PadCase, client: FrontexPadClient
):
    names = set()
    account_service = AccountService(foirequest.user)
    last_imported_message = FoiMessage.objects.filter(
        request=foirequest, kind=MessageKind.IMPORT, is_response=True
    ).latest()
    for document in case.metadata.documents:
        name = f"imported_{document.name}"
        name = account_service.apply_name_redaction(name, str(_("NAME")))
        name = make_unique_filename(name, names)
        names.add(name)
        attachment_exists = FoiAttachment.objects.filter(
            belongs_to__request=foirequest,
            belongs_to__kind=MessageKind.IMPORT,
            name=name,
        ).exists()
        if attachment_exists:
            continue
        attachment_content = client.download_document(document)
        att = FoiAttachment.objects.create(
            belongs_to=last_imported_message,
            name=name,
            size=len(attachment_content),
            filetype=get_content_type(attachment_content),
            can_approve=True,
            approved=False,
        )
        if foirequest.not_publishable:
            att.can_approve = False
        att.file.save(content=ContentFile(attachment_content), name=name)
        att.save()