@ApiStatus.Internal
  @ApiStatus.Obsolete
  public static boolean isLocalhost(@NotNull @NlsSafe String hostName) {
    return hostName.equalsIgnoreCase("localhost") || hostName.equals("127.0.0.1") || hostName.equals("::1");
  }
@ApiStatus.Internal
  @ApiStatus.Obsolete
  public static boolean isLocalhost(@NotNull @NlsSafe String hostName)