@ApiStatus.Internal
  @ApiStatus.Obsolete
  public static boolean canConnectToRemoteSocket(String host, int port) {
    try {
      Socket socket = new Socket(host, port);
      socket.close();
      return true;
    }
    catch (IOException ignored) {
      return false;
    }
  }
@ApiStatus.Internal
  @ApiStatus.Obsolete
  public static boolean canConnectToRemoteSocket(String host, int port)