public static boolean checkForJdk(@NotNull String homePath) {
    try {
      return checkForJdk(Path.of(homePath));
    }
    catch (InvalidPathException e) {
      return false;
    }
  }
public static boolean checkForJdk(@NotNull String homePath)