@Override
  @Nullable
  public Charset getPreferredModuleEncoding(@NotNull Module module) {
    final Set<Charset> encodings = myModuleFileEncodings.getValue().get(module);
    return ContainerUtil.getFirstItem(encodings, EncodingProjectManager.getInstance(myProject).getDefaultCharset());
  }
@Override
  @Nullable
  public Charset getPreferredModuleEncoding(@NotNull Module module)