private static @Nullable VcsUser readCurrentUser(@NotNull Project project, @NotNull VirtualFile root) throws VcsException {
    String userName = StringUtil.nullize(GitConfigUtil.getValue(project, root, GitConfigUtil.USER_NAME));
    String userEmail = StringUtil.notNullize(GitConfigUtil.getValue(project, root, GitConfigUtil.USER_EMAIL));
    return userName == null ? null : project.getService(VcsLogObjectsFactory.class).createUser(userName, userEmail);
  }
private static @Nullable VcsUser readCurrentUser(@NotNull Project project, @NotNull VirtualFile root)