private static String checkRestarter(String restarterName) {
    var restarter = Path.of(PathManager.getBinPath(), restarterName);
    return Files.isExecutable(restarter) ? null : "not an executable file: " + restarter;
  }
private static String checkRestarter(String restarterName)