private @Nullable String getUser() {
    try {
      return execAndCheckExitCode(List.of("whoami")).trim();
    }
    catch (ExecutionException e) {
      // ignore errors: we can list processes without information about the current user
      return null;
    }
  }
private @Nullable String getUser()