private String getStateDebugPath() {
        StringJoiner result = new StringJoiner("/");
        Iterator<State> iterator = states.descendingIterator();
        while (iterator.hasNext()) {
            result.add(iterator.next().getSectionName());
        }
        return result.toString();
    }
Gets the debug path to the current state so that errors encountered while
using AbstractCodeWriter are easier to track down.

<p>For example, if state "Foo" is entered, and then an unnamed state is
entered, the return value is "ROOT/Foo/UNNAMED".

@return Returns a "/" separated path to the current state.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java