def METHOD_NAME(self, ac: conf.Aircraft, target: str):
    args = [conf.MOD_DEP, "-ac", ac.name, "-af", ac.airframe, "-fp", ac.flight_plan]
    if target != "all":
        args.extend(["-t", target])
    completed = subprocess.run(args, capture_output=True)
    if completed.returncode != 0:
        return []   # completed.returncode, completed.stderr
    modules_list = []
    module_lines = completed.stdout.decode().strip().split("\n")
    for module_line in module_lines:
        args = module_line.split(" ")
        module_path = args[0]
        module = utils.remove_prefix(args[0], os.path.join(utils.CONF_DIR, "modules/"))
        module = utils.remove_suffix(module, ".xml")
        module_type = args[1] if len(args) > 1 else "_"
        modules_list.append((module, module_type))
    return modules_list