// for inner nodes, recurse
for (ConcRel child : concept.getChildren()) {
// if we've already visited a node, then don't bother adding
// that node's leaves - we already have them
if (!visitedNodesLocal.contains(child.getNodeIndex())) {
leaves.addAll(getLeaves(child, leafCache, icInfoMap, cg, w,
visitedNodesLocal));
}
}
// add this node to the set of visited nodes so we know not to
// revisit. This is only of importance if the caller gave us