private void addMethods(TreeNode<OutlineEntry> nextEntry, HierarchyNodeModel model) {
if (model == null || model.parents == null) {
return;
}
for (HierarchyNodeModel parent : model.parents) {
DefinitionsASTIteratorVisitor visitor = DefinitionsASTIteratorVisitor.createForChildren(parent.ast);
if (visitor == null) {
continue;
}
Iterator<ASTEntry> outline = visitor.getOutline();
while (outline.hasNext()) {
ASTEntry entry = outline.next();
if (entry.parent == null) {
//only direct children...
new TreeNode<OutlineEntry>(nextEntry, new OutlineEntry(entry, parent), null);