Привет. Не могу понять, для чего здесь используется преобразование в List, если ArrayList и так уже List?
Объясните, пожалуйста)
Human mother = new Human("Nasty", false, 37, new ArrayList<>(Arrays.asList(child1, child2, child3)));
Human father = new Human("John", true, 40, new ArrayList<>(Arrays.asList(child1, child2, child3)));
Human grandFather = new Human("Tom", true, 67, new ArrayList<>(Arrays.asList(father)));
Human grandFather2 = new Human("Tim", true, 77, new ArrayList<>(Arrays.asList(mother)));
Human grandMother = new Human("Kate", false, 57, new ArrayList<>(Arrays.asList(father)));
Human grandMother2 = new Human("Mindy", false, 50, new ArrayList<>(Arrays.asList(mother)));