private void addChildComments(List<? extends IEndlessAdaptable> loadedItems,Comment comment,List<IEndlessAdaptable> displayedComments){
  for (int j=loadedItems.indexOf(comment) + 1; j < loadedItems.size(); ++j) {
    Comment child=(Comment)loadedItems.get(j);
    if (child.getDepth() <= comment.getDepth())     break;
    displayedComments.add(child);
  }
}

private void addChildComments ( List < ? extends IEndlessAdaptable > loadedItems , Comment comment , List < IEndlessAdaptable > displayedComments ) { for ( int j = loadedItems . indexOf ( comment ) + 1 ; j < loadedItems . size ( ) ; ++ j ) { Comment child = ( Comment ) loadedItems . get ( j ) ; if ( child . getDepth ( ) <= comment . getDepth ( ) ) break ; displayedComments . add ( child ) ; } }
add all child comments .
