code: public static Socket accept(ServerSocket serverSocket, @ClosureParams(value=SimpleType.class, options="java.net.Socket") final Closure closure) throws IOException {
          return accept(serverSocket, true, closure);
      }
docs: Accepts a connection and passes the resulting Socket to the closure
  which runs in a new Thread.
  
  @param serverSocket a ServerSocket
  @param closure      a Closure
  @return a Socket
  @throws IOException if an IOException occurs.
  @see java.net.ServerSocket#accept()
  @since 1.0