SendableRequest req = null;
if(r != null && r.req != null) req = r.req;
if(req == null) continue;
if(isInsertScheduler && req instanceof SendableGet) {
IllegalStateException e = new IllegalStateException("removeFirstInner returned a SendableGet on an insert scheduler!!");
req.internalError(e, sched, context, req.persistent());
throw e;
}
ChosenBlock block = maybeMakeChosenRequest(req, context, now);
if(block != null) return block;
}