class FileUtils {

    @NotNull
    public static MerkleTree buildMerkleTree(
            @NotNull IndexService indexService,
            @NotNull File blob,
            @NotNull Partition partition
    ) {
        SortedMap<Long, Block> blocks = readBlob(indexService, blob, partition);

        MerkleTree tree = new MerkleTree(indexService.getMinMaxRange(partition), MAX_LEVEL);
        MerkleTree.fillTree(tree, blocks);
        tree.calculate();

        return tree;
    }

    private  FileUtils();

}