List<TreePath> (String s) { List<TreePath> paths = new ArrayList<>(); String _s = s.trim(); ListIterator<Object> it = getElementIterator(0); while (it.hasNext()) { Object element = it.next(); if (isMatchingElement(element, _s)) paths.add((TreePath)element); } return paths; }