Your question has a similar solution to the below, but on an input tag, not a div tag.
Use your class attribute, and maybe type attribute, to see if you get just the elements you want.
I also might add a verification to your checkbox being checked.
for (def checkbox : checkboxes) {
WebUI.click(checkbox)
WebUI.verifyElementChecked(checkbox, 10)
}