title: Java replacing method with lambda
body: <p>I have the following method </p>
  
  <pre><code>private void initializeMoveOnClick(final Group window){
      window.addEventFilter(MouseEvent.MOUSE_CLICKED, new EventHandler&lt;MouseEvent&gt;() {
          @Override
          public void handle(MouseEvent mouseEvent) {
              //do some stuff
          }
      });
  }
  </code></pre>
  
  <p>How do I go about replacing the overrided handle method declaration with a lambda expression?</p>