void (@NotNull List<XValueGroup> valueGroups, @NotNull List<TestCompositeNode> resultNodes, @NotNull List<Promise<?>> promises) { for (XValueGroup group : valueGroups) { TestCompositeNode node = new TestCompositeNode(group); boolean computeChildren = groupContentResolveCondition.value(group); if (computeChildren) { group.computeChildren(node); } resultNodes.add(node); if (computeChildren) { promises.add(node.loadContent(Conditions.alwaysFalse(), valueSubContentResolveCondition)); } } }