def METHOD_NAME(jenkins: JenkinsApi) -> list[JenkinsWorkerFleet]:
    current_state = []
    jenkins_config = cast(dict[str, Any], jenkins.get_jcasc_config().get("jenkins"))
    clouds = cast(list[dict[str, Any]], jenkins_config.get("clouds", []))
    for c in clouds:
        # eC2Fleet is defined by jcasc schema
        fleet = c.get("eC2Fleet", None)
        if fleet:
            current_state.append(JenkinsWorkerFleet(**fleet))
    # fix https://github.com/jenkinsci/ec2-fleet-plugin/issues/323
    config = {"jenkins": {"clouds": clouds}}
    jenkins.apply_jcasc_config(config)
    return current_state