def METHOD_NAME(self) -> bool:
    # idk why, but python thinks that list_ports.grep returns tuple[str, str, str]
    blackmagics: list[ListPortInfo] = list(list_ports.grep("blackmagic"))  # type: ignore
    daps: list[ListPortInfo] = list(list_ports.grep("CMSIS-DAP"))  # type: ignore
    return len(blackmagics) > 0 or len(daps) > 0