void (AbstractTreeStructure structure, Object from) { Object[] childElements = structure.getChildElements(from); for (Object childElement : childElements) { Assert.assertSame(from, structure.getParentElement(childElement)); checkGetParentConsistency(structure, childElement); } }