CharSequence (@NotNull Project project, @NotNull String path, @Nullable CommitContext commitContext) { Path file = ProjectKt.getStateStore(project).getProjectBasePath().resolve(path); VirtualFile vf = LocalFileSystem.getInstance().refreshAndFindFileByNioFile(file); return vf == null ? null : vf.getCharset().name(); }