public static Charset @NotNull [] getAvailableCharsets() {
    Collection<Charset> collection = Charset.availableCharsets().values();
    return collection.toArray(new Charset[0]);
  }
public static Charset @NotNull [] getAvailableCharsets()