private void checkNext() {
    if (!hasNext()) {
      throw new NoSuchElementException();
    }
  }
A procedure iterator which holds all the procedure protos in memory. For fast access.
hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/InMemoryProcedureIterator.java