void (@NotNull ConfigurableGroup group, @NotNull Consumer<? super Configurable> consumer) { Configurable[] configurables = group.getConfigurables(); List<Configurable> result = new ArrayList<>(); Collections.addAll(result, configurables); for (Configurable each : configurables) { addChildren(each, result); } for (Configurable configurable : result) { consumer.accept(configurable); } }