private void collectReferences(final IOperandTreeNode node,final Set<IAddress> references){
  for (  final IReference reference : node.getReferences()) {
    if (ReferenceType.isCodeReference(reference.getType())) {
      references.add(reference.getTarget());
    }
  }
  for (  final IOperandTreeNode child : node.getChildren()) {
    collectReferences(child,references);
  }
}

private void collectReferences ( final IOperandTreeNode node , final Set < IAddress > references ) { for ( final IReference reference : node . getReferences ( ) ) { if ( ReferenceType . isCodeReference ( reference . getType ( ) ) ) { references . add ( reference . getTarget ( ) ) ; } } for ( final IOperandTreeNode child : node . getChildren ( ) ) { collectReferences ( child , references ) ; } }
collects all code references from an operand tree node and all of its children .
