Your link shows a KML file on a webserver. When you point towards the location you will have nested checkboxes (at least if your KML file has subfolders). But this method isn't clean because it shows the path of the file.
I have been looking for a method to show nested checkboxes with a cleaner interface, but I never found a way to do it. Sorry!