private static void collectPythonInstallations(@NotNull Path pythonHomePath, @NotNull Set<Path> candidates) {
    Path pythonBinaryPath = pythonHomePath.resolve(Path.of("bin", "python3"));
    if (Files.isRegularFile(pythonBinaryPath)) {
      candidates.add(pythonBinaryPath);
    }
  }
private static void collectPythonInstallations(@NotNull Path pythonHomePath, @NotNull Set<Path> candidates)