void (@NotNull Container container, @NotNull Consumer<? super Component> consumer) { consumer.accept(container); for (Component component : container.getComponents()) { consumer.accept(component); } }