             
             textStackView.addArrangedSubview(view)
         }
+    }
+
+    private func addTapGestureRecognizer(to label: UILabel) {
+        let tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tappedLabelWithSender(_:)))
+        label.addGestureRecognizer(tapGestureRecognizer)
     }
     
     func updateTextLabels(in textStackView: UIStackView, newViewModel: DiffListChangeViewModel) {

    @IBOutlet var textStackView: UIStackView!
    @IBOutlet var innerView: UIView!
    
    private var tapGestureRecognizer: UITapGestureRecognizer?
    
    private(set) var viewModel: DiffListChangeViewModel?
    
    weak var delegate: DiffListChangeCellDelegate?
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        tapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(tappedLabelWithSender(_:)))
    }
    
    func update(_ viewModel: DiffListChangeViewModel) {
        

            label.isUserInteractionEnabled = true
            label.tag = index
            label.translatesAutoresizingMaskIntoConstraints = false

            if label.gestureRecognizers == nil {
                addTapGestureRecognizer(to: label)
            } else if let gestureRecognizers = label.gestureRecognizers, gestureRecognizers.isEmpty {
                addTapGestureRecognizer(to: label)
            }
            
            //add surrounding view
