private static boolean hasAttribute(@NotNull Element element, @NotNull String name) {
    return element.getAttribute(name) != null;
  }
private static boolean hasAttribute(@NotNull Element element, @NotNull String name)