def METHOD_NAME(self):
    server = self.env["fetchmail.server"].search(
        [("is_fatturapa_pec", "=", True), ("state", "=", "done")]
    )
    if not server:
        raise UserError(_("No incoming PEC server found. Please configure it."))