presto-main/src/main/java/io/prestosql/sql/planner/optimizations/IndexJoinOptimizer.java/Context/markSuccess
class Context:            public void markSuccess()
            {
                checkState(success.compareAndSet(false, true), "Can only have one success per context");
            }