public static @Nullable Object invokeNameValueMethod(final @NotNull Object element) {
    return ourNameValueMethods.get(element.getClass()).map(method -> DomReflectionUtil.invokeMethod(method, element)).orElse(null);
  }
public static @Nullable Object invokeNameValueMethod(final @NotNull Object element)