def METHOD_NAME(self) -> KDESnaps:
    """Return the KDE related snaps to use to construct the environment."""
    base = self.yaml_data["base"]
    sdk_snap = _SDK_SNAP[base]
    build_snaps: List[str] = []
    for part in self.yaml_data["parts"].values():
        build_snaps.extend(part.get("build-snaps", []))
    matcher = re.compile(r"kf5-\d+-\d+-qt-\d+.*-" + base + r"-sdk.*")
    sdk_snap_candidates = [s for s in build_snaps if matcher.match(s)]
    if sdk_snap_candidates:
        sdk_snap = sdk_snap_candidates[0].split("/")[0]
        builtin = False
    else:
        builtin = True
    # The same except the trailing -sd
    content = sdk_snap[:-4]
    return KDESnaps(sdk=sdk_snap, content=content, builtin=builtin)