code: public void setPeriod(@Nullable Period period) {
      checkState(!initialized, "Period have already been initialized");
      this.period = period;
      this.initialized = true;
    }
docs: Initializes the periods in the holder.
  
  @throws IllegalStateException if the holder has already been initialized