public String getInvalidHomeMessage(@NotNull String path) {
    return new File(path).isDirectory()
      ? ProjectBundle.message("sdk.configure.home.invalid.error", getPresentableName())
      : ProjectBundle.message("sdk.configure.home.file.invalid.error", getPresentableName());
  }
public String getInvalidHomeMessage(@NotNull String path)