void (@NotNull Element element, @NotNull State state) { for (DependencyRule rule : state.rules) { Element ruleElement = writeRule(rule); if (ruleElement != null) { element.addContent(ruleElement); } } }