refine getChildren() method to narrow return type.