presto-main/src/main/java/io/prestosql/sql/planner/sanity/PlanSanityChecker.java/PlanSanityChecker/validateFinalPlan
class PlanSanityChecker:    public void validateFinalPlan(PlanNode planNode, Session session, Metadata metadata, TypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector)
    {
        checkers.get(Stage.FINAL).forEach(checker -> checker.validate(planNode, session, metadata, typeAnalyzer, types, warningCollector));
    }