private static <T extends AbstractBlockBase<T>>PriorityQueue<T> initializeWorklist(T startBlock,BitSet visitedBlocks){
  PriorityQueue<T> result=new PriorityQueue<>(INITIAL_WORKLIST_CAPACITY,new BlockOrderComparator<>());
  result.add(startBlock);
  visitedBlocks.set(startBlock.getId());
  return result;
}

private static < T extends AbstractBlockBase < T > > PriorityQueue < T > initializeWorklist ( T startBlock , BitSet visitedBlocks ) { PriorityQueue < T > result = new PriorityQueue < > ( INITIAL_WORKLIST_CAPACITY , new BlockOrderComparator < > ( ) ) ; result . add ( startBlock ) ; visitedBlocks . set ( startBlock . getId ( ) ) ; return result ; }
initializes the priority queue used for the work list of blocks and adds the start block .
