static WorldNameRewriter of(Map<String, String> rewrites) {
        if (rewrites.isEmpty()) {
            return new Empty();
        } else {
            return new NonEmpty(rewrites);
        }
    }
Rewrites world names according to the {@link ConfigKeys#WORLD_REWRITES} option.
common/src/main/java/me/lucko/luckperms/common/context/calculator/WorldNameRewriter.java