private static void cleanupBlocks(List<? extends LeafBlockWrapper> blocks) {
    for (LeafBlockWrapper block : blocks) {
      block.getParent().dispose();
      block.dispose();
    }
    blocks.clear();
  }
private static void cleanupBlocks(List<? extends LeafBlockWrapper> blocks)