public static boolean checkForJre(@NotNull Path homePath) {
    return Files.exists(homePath.resolve("bin/java")) || Files.exists(homePath.resolve("bin/java.exe"));
  }
public static boolean checkForJre(@NotNull Path homePath)