presto-main/src/main/java/io/prestosql/sql/planner/optimizations/joins/JoinGraph.java/JoinGraph/buildFrom
class JoinGraph:    public static JoinGraph buildFrom(Metadata metadata, PlanNode plan, Lookup lookup, PlanNodeIdAllocator planNodeIdAllocator)
    {
        return plan.accept(new Builder(metadata, lookup, planNodeIdAllocator), new Context());
    }