private static <T extends AbstractBlockBase<T>>void enqueueSuccessors(T block,PriorityQueue<T> worklist,BitSet visitedBlocks){
  for (  T successor : block.getSuccessors()) {
    if (!visitedBlocks.get(successor.getId())) {
      visitedBlocks.set(successor.getId());
      worklist.add(successor);
    }
  }
}

private static < T extends AbstractBlockBase < T > > void enqueueSuccessors ( T block , PriorityQueue < T > worklist , BitSet visitedBlocks ) { for ( T successor : block . getSuccessors ( ) ) { if ( ! visitedBlocks . get ( successor . getId ( ) ) ) { visitedBlocks . set ( successor . getId ( ) ) ; worklist . add ( successor ) ; } } }
add successor blocks into the given work list if they are not already marked as visited .
