private List<OrderingConstraint> findAllOrderingConstraintsFrom(Class<? extends Transaction> transactionType,
                                                                    List<OrderingConstraint> constraints) {
        return constraints.stream().filter(c -> c.before().equals(transactionType)).toList();
    }
Returns whether transaction type B must be after type A according to the ordering constraints.
This is the same as asking whether there is a path between node a and b in the bi-directional
graph defined by the ordering constraints.
vespajlib/src/main/java/com/yahoo/transaction/NestedTransaction.java