private static boolean hasContent(@NotNull Element element, @NotNull Content content) {
    return content instanceof Element && !element.getChildren(((Element)content).getName()).isEmpty();
  }
private static boolean hasContent(@NotNull Element element, @NotNull Content content)