public static @NotNull Charset getDefaultCharset(@NotNull Project project) {
    if (HGENCODING != null && HGENCODING.length() > 0 && Charset.isSupported(HGENCODING)) {
      return Charset.forName(HGENCODING);
    }
    Charset defaultCharset = null;
    if (!project.isDisposed()) {
      defaultCharset = EncodingProjectManager.getInstance(project).getDefaultCharset();
    }
    return defaultCharset != null ? defaultCharset : Charset.defaultCharset();
  }
public static @NotNull Charset getDefaultCharset(@NotNull Project project)