List<Path> execute() {
            Set<ShapeId> visited = new HashSet<>();
            for (Shape candidate : candidates) {
                traverseUp(candidate, null, visited);
            }

            return results;
        }
Converts the path to valid {@link Selector} syntax.

@return Returns the path as a selector.
smithy-model/src/main/java/software/amazon/smithy/model/selector/PathFinder.java