@Override
  public String getErrorMessage(final @Nullable String s, final @NotNull ConvertContext context) {
    if (s == null) return super.getErrorMessage(null, context);

    final boolean isEmpty = s.trim().length() == 0;
    if (isEmpty && myAllowEmpty) return null;

    return isEmpty ?
           XmlDomBundle.message("dom.converter.format.exception.empty.string", myNumberClass.getName()) :
           XmlDomBundle.message("dom.converter.format.exception", s, myNumberClass.getName());
  }
@Override
  public String getErrorMessage(final @Nullable String s, final @NotNull ConvertContext context)