public static boolean isEmpty(@Nullable Element element, int attributeCount) {
    return element == null || getAttributes(element).size() == attributeCount && element.getContent().isEmpty();
  }
public static boolean isEmpty(@Nullable Element element, int attributeCount)