@ Nullable public static Element findFirstElement ( @ Nonnull final Element node , @ Nonnull final String elementName ) { Element result = null ; for ( final Element l : Utils . findDirectChildrenForName ( node , elementName ) ) { result = l ; break ; } return result ; }
Get first direct child for name .