String (@NotNull String path) { if (JdkUtil.checkForJre(path)) { return "The selected directory points to a JRE, not a JDK.\nYou can download a JDK from " + getDownloadSdkUrl(); } return super.getInvalidHomeMessage(path); }