public Set<String> allStateStoreNames() {
        Objects.requireNonNull(applicationId, "topology has not completed optimization");

        final Set<String> allNames = new HashSet<>(stateFactories.keySet());
        allNames.addAll(globalStateStores.keySet());
        return Collections.unmodifiableSet(allNames);
    }
Get any global {@link StateStore}s that are part of the
topology
@return map containing all global {@link StateStore}s
streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java