@Override
        public void rewriteAndSubmit(String worldName, ContextConsumer consumer) {
            Set<String> seen = new HashSet<>();
            worldName = worldName.toLowerCase(Locale.ROOT);

            while (Context.isValidValue(worldName) && seen.add(worldName)) {
                consumer.accept(DefaultContextKeys.WORLD_KEY, worldName);

                worldName = this.rewrites.get(worldName);
                if (worldName == null) {
                    break;
                }
            }
        }
Rewrites world names according to the {@link ConfigKeys#WORLD_REWRITES} option.
common/src/main/java/me/lucko/luckperms/common/context/calculator/WorldNameRewriter.java