static IProbabilistic runnableToProbabilistic(Runnable r) { ret r == null ?: new Probabilistic { run { r.run(); } }; }