presto-main/src/main/java/io/prestosql/sql/planner/sanity/PlanSanityChecker.java/PlanSanityChecker/validate
class PlanSanityChecker:        void validate(PlanNode planNode, Session session, Metadata metadata, TypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector);