code: void addToSubBlock(State<S, L> state) {
          if (currSubBlock == null) {
              throw new IllegalStateException("No current sub block");
          }
          currSubBlock.referencedAdd(state);
          elementsInSubBlocks++;
      }
docs: Adds a state to the current sub block.
  
  @param state
  the state to be added.