public ModuleBuilder addRegistries(List<? extends RegistryConfig> registries) {
        if (this.registries == null) {
            this.registries = new ArrayList<>();
        }
        this.registries.addAll(registries);
        return getThis();
    }
@Test
    void addRegistries() {
        RegistryConfig registry = new RegistryConfig();
        ModuleBuilder builder = ModuleBuilder.newBuilder();
        builder.addRegistries(Collections.singletonList(registry));
        Assertions.assertTrue(builder.build().getRegistries().contains(registry));
        Assertions.assertEquals(1, builder.build().getRegistries().size());
    }