void (@NotNull JsonSchemaVariantsTreeBuilder.Operation operation) { if (!SchemaResolveState.normal.equals(operation.myState)) { final JsonSchemaTreeNode node = new JsonSchemaTreeNode(this, null); node.myResolveState = operation.myState; myChildren.add(node); return; } if (!operation.myAnyOfGroup.isEmpty()) { myChildren.addAll(convertToNodes(operation.myAnyOfGroup)); } if (!operation.myOneOfGroup.isEmpty()) { for (int i = 0; i < operation.myOneOfGroup.size(); i++) { final List<JsonSchemaObject> group = operation.myOneOfGroup.get(i); final List<JsonSchemaTreeNode> children = convertToNodes(group); final int number = i; children.forEach(c -> c.myExcludingGroupNumber = number); myChildren.addAll(children); } } }