protected static String foldToStringChildren(Fold fold, int indent) {
    indent += 4;
    StringBuffer sb = new StringBuffer();
    String foldTxt = fold.toString();

    // removing hash from the string
    int startOfHash = foldTxt.indexOf("hash=0x");
    int endOfHash = foldTxt.indexOf(",", startOfHash);
    foldTxt = foldTxt.replace("E0", "E1");
    foldTxt = foldTxt.replace("C0", "C1");
    String foldTxtCorrected = foldTxt.substring(0, startOfHash) + foldTxt.substring(endOfHash);
    sb.append(foldTxtCorrected);
    sb.append('\n');
    int foldCount = fold.getFoldCount();
    for (int i = 0; i < foldCount; i++) {
      appendSpaces(sb, indent);
      sb.append('[');
      sb.append(i);
      sb.append("]: "); // NOI18N
      sb.append(foldToStringChildren(fold.getFold(i), indent));
    }

    return sb.toString();
  }