public int getChildCount() {
   if (nestedBlock instanceof MixedContent) {
     return nestedBlock.getChildCount();
   }
   if (nestedBlock != null) {
     return 1;
   }
   return regulatedChildCount;
 }
 private void removeDebugBreaks(TemplateElement te) {
   int count = te.getChildCount();
   for (int i = 0; i < count; ++i) {
     TemplateElement child = (TemplateElement) te.getChildAt(i);
     while (child instanceof DebugBreak) {
       TemplateElement dbchild = (TemplateElement) child.getChildAt(0);
       te.setChildAt(i, dbchild);
       child = dbchild;
     }
     removeDebugBreaks(child);
   }
 }