public int getRecursiveContentCount() {
    var count = contents.size();
    for (ContentManagerImpl nestedManager : myNestedManagers) {
      count += nestedManager.getRecursiveContentCount();
    }
    return count;
  }
public int getRecursiveContentCount()