analyzer: add heuristics for switch on enum type [PR105273]