presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/PreconditionRules.java/PreconditionRules/checkNoPlanNodeMatches
class PreconditionRules:    private static <T extends PlanNode> Rule<T> checkNoPlanNodeMatches(Pattern<T> pattern, String message)
    {
        return new CheckNoPlanNodeMatchesRule<>(pattern, message);
    }