At least put a comment block to describe what this long list of ifs is doing - it's injecting some detectors, but beyond that it's not immediately obvious.

Could this be refactored into a loop?  This is a lot of cut and paste that's going to be a big pain to modify as is.