void (final @Nullable VirtualFile virtualFile, final Charset charset) { Project project = guessProject(virtualFile); if (project == null) return; EncodingProjectManager.getInstance(project).setDefaultCharsetForPropertiesFiles(virtualFile, charset); }