Element (@NotNull Element parent, @NotNull String childName) { Element child = parent.getChild(childName); if (child == null) throw new InvalidDataException("mandatory element '" + childName + "' is missing: " + parent); return child; }