code: public void markInitialState() {
  
          if (!attachedObjects.isEmpty()) {
              for (T t : attachedObjects) {
                  if (t instanceof PartialStateHolder) {
                      ((PartialStateHolder) t).markInitialState();
                  }
              }
          }
          initialState = true;
  
      }
docs: ------------------------------------- Methods from PartialStateHolder