code: public JBBPDslBuilder CloseStruct(final boolean closeAllOpened) {
      if (this.openedStructCounter == 0) {
        throw new IllegalStateException("There is not any opened struct");
      }
      this.addItem(new ItemStructEnd(closeAllOpened));
      this.openedStructCounter = closeAllOpened ? 0 : this.openedStructCounter - 1;
      return this;
    }
docs: Add directive to close currently opened structure or all opened structures.
  
  @param closeAllOpened flag to close all opened structures if true, false if close only last opened structure
  @return the builder instance, must not be null
  @throws IllegalStateException if there is not any opened struct