code: public GitlabNote modifyDiscussionNote(GitlabMergeRequest mergeRequest, int discussionId,
              int noteId, String body, Boolean resolved) throws IOException {
          boolean bodyHasValue = false;
          if (body != null && !body.isEmpty()) {
              bodyHasValue = true;
          }
          if ((!bodyHasValue && resolved == null) || (bodyHasValue && resolved != null)) {
              throw new IllegalArgumentException("Exactly one of body or resolved must be set!");
          }
          String tailUrl = GitlabProject.URL + "/" + mergeRequest.getProjectId() +
                  GitlabMergeRequest.URL + "/" + mergeRequest.getIid() +
                  GitlabDiscussion.URL + "/" + discussionId +
                  GitlabNote.URL + "/" + noteId;
          return retrieve().method(PUT)
                  .with("body", body)
                  .with("resolved", resolved)
                  .to(tailUrl, GitlabNote.class);
      }
docs: Modify or resolve an existing discussion note of the given merge request.
  
  @param mergeRequest  The merge request of the discussion.
  @param discussionId  The id of the discussion to modify.
  @param noteId        The id of the discussion note.
  @param body          The content of the discussion.
  @param resolved      Resolve or unresolve the note.
  
  @return The modified note object.
  @throws IOException on a GitLab api call error