title: Statement lambda can be replaced with expression lambda
body: <p>I do user and invitation validation using the Optional facility</p>
  
  <pre><code>@DeleteMapping("/friends/{username}")
  public
  HttpEntity&lt;Boolean&gt; removeFriend(
          @ApiParam(value = "The user's name", required = true) @PathVariable String username
  ) {
      Long fromId = authorizationService.getUserId();
  
      return userService.findByUsername(username)
              .map(user -&gt; {
                   return friendshipService.findFriendship(fromId, user.getId())
                          .map(friendship -&gt; {
                              friendshipService.removeFriendship(friendship);
  
                              friendship.setToId(friendship.getFromId());
                              friendship.setFromId(friendship.getToId());
  
                              friendshipService.removeFriendship(friendship);
  
                              return ResponseEntity.ok(true);
                          }).orElseGet(() -&gt; ResponseEntity.notFound().build());
              }).orElseThrow(() -&gt; new ResourceNotFoundException("User not found"));
  </code></pre>
  
  <p>However, <code>IntelliJ</code> is colouring my grey <code>return</code>, But when I remove the <code>return</code>, it highlights to me that there is no <code>return</code>.</p>
  
  <p>Could someone explain how it works and what is it all about?</p>