It's a chunk from D26390
Although the functionality is belong to the report module, only the analyzer module calls it. And rest of the report module functions are independent from this. It makes easier to follow the analyzer logic when this is in the same module.