Detection methods include immunohistochemistry (IHC), which stains tissues to reveal the presence of specific proteins, and flow cytometry, which analyzes cell surface markers. Additionally, next-generation sequencing (NGS) can identify genetic alterations that may predict response to immunotherapy.