@Override
  public void removeAllContents(boolean dispose) {
    if (contents.isEmpty()) {
      return;
    }

    for (Content content : List.copyOf(contents)) {
      removeContent(content, dispose);
    }
  }
@Override
  public void removeAllContents(boolean dispose)