@Override
    public final void leave(String name) {
        if (--prefixComponentIndex < prefix.size()) return; // we're in the given prefix, which should not be included in the name
        if ( ! name.isEmpty())
            currentPrefix = currentPrefixes.pop();
    }
The current prefix, relative to prefix.
container-search/src/main/java/com/yahoo/search/query/profile/PrefixQueryProfileVisitor.java