presto-main/src/main/java/io/prestosql/sql/planner/sanity/TypeValidator.java/TypeValidator/validate
class TypeValidator:    @Override
    public void validate(PlanNode plan, Session session, Metadata metadata, TypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector)
    {
        plan.accept(new Visitor(session, metadata, typeAnalyzer, types, warningCollector), null);
    }