T (@Nullable @NonNls final String s, final ConvertContext context) { if (s == null) return null; if (myAllowEmpty && s.trim().length() == 0) { return null; } //noinspection unchecked return (T)parseNumber(s, myNumberClass); }