code: public static CondensedCallStackElement of(CallStackElement callStackElement) {
      CondensedCallStackElement condensedCallStackElement =
          new CondensedCallStackElement(callStackElement);
  
      List<CallStackElement> children = Lists.newArrayList();
      for (CallStackElement child : callStackElement.getChildren()) {
        CondensedCallStackElement condensedChild = of(child);
        children.add(condensedChild);
        condensedChild.setParent(condensedCallStackElement);
      }
      condensedCallStackElement.setChildren(children);
  
      return condensedCallStackElement;
    }
docs: Creates a new instance of {@link CondensedCallStackElement} by copying the specified
  {@link CallStackElement}.