public static @Nullable Charset forName(@Nullable String name) {
    Charset charset = null;
    if (name != null) {
      try {
        charset = Charset.forName(name);
      }
      catch (IllegalCharsetNameException | UnsupportedCharsetException ignored) { }
    }

    return charset;
  }
public static @Nullable Charset forName(@Nullable String name)