Set<Object> (Enumeration elements) { ArrayList<Object> elementArray = new ArrayList<>(); if (elements != null) { while (elements.hasMoreElements()) { Object each = elements.nextElement(); elementArray.add(each); } } return addPaths(elementArray); }