code: @NullSafe
    public static boolean close(ServerSocket serverSocket) {
      if (serverSocket != null) {
        try {
          serverSocket.close();
          return true;
        }
        catch (IOException ignore) {
        }
      }
  
      return false;
    }
docs: Attempts to close the given {@link ServerSocket} returning a boolean value to indicate whether the operation
  was successful or not.
  
  @param serverSocket {@link ServerSocket} to close.
  @return a boolean value indicating whether the {@link ServerSocket} was successfully closed or not.
  @see java.net.ServerSocket#close()