Refs #10339 only one return in findDetector and add comments