private static FunctionBlock findBlock(final Callgraph callgraph,final Function function){
  for (  final FunctionBlock callgraphNode : callgraph) {
    if (function == callgraphNode.getFunction()) {
      return callgraphNode;
    }
  }
  throw new IllegalStateException("Error: Call graph node of unknown function");
}

private static FunctionBlock findBlock ( final Callgraph callgraph , final Function function ) { for ( final FunctionBlock callgraphNode : callgraph ) { if ( function == callgraphNode . getFunction ( ) ) { return callgraphNode ; } } throw new IllegalStateException ( "Error: Call graph node of unknown function" ) ; }
finds the node that represents a given function in a call graph .
