code: @Nonnull
    @MustNotContainNull
    public static List<Element> findDirectChildrenForName(@Nonnull final Element element, @Nonnull final String childElementname) {
      final List<Element> resultList = new ArrayList<Element>();
      final NodeList list = element.getChildNodes();
      for (int i = 0; i < list.getLength(); i++) {
        final Node node = list.item(i);
        if (element.equals(node.getParentNode()) && node instanceof Element && childElementname.equals(node.getNodeName())) {
          resultList.add((Element) node);
        }
      }
      return resultList;
    }
docs: Find all direct children with defined name.
  
  @param element parent element
  @param childElementname child element name
  @return list of found elements
  @since 1.4.0