for (Iterator<?> iter = elements.iterator(); iter.hasNext();) {
Object iterElement = iter.next();
if (iterElement instanceof LineNumberElement) {
//if this is a circuit, we will want to go into this
LineNumberElement lnElement = (LineNumberElement) iterElement;
TreeParentNode node = new TreeParentNode(lnElement.getName());
node.setElement(lnElement);
node.setLinenumber(lnElement.getStartLine());
node.setFrameworkType(frameworkType);
node.setDocumentPath(filePath);
if(!lnElement.getChildren().isEmpty()){
parse2(lnElement.getChildren(), node);
}
parentnode.addChild(node);
}
}
}