Set<String> () { for (Object child : myChildren) { if (child instanceof String) { myIds.add((String)child); } else if (child instanceof QuickList) { myIds.add(((QuickList)child).getActionId()); } else if (child instanceof Group childGroup) { myIds.addAll(childGroup.initIds()); if (childGroup.myId != null) { myIds.add(childGroup.myId); } } } return myIds; }