move visit_predicate into TypeVisitor
#78278
Merged
visit_predicate into TypeVisitor
#78278