code: private boolean containsComment(GHPullRequest ghPullRequest, String expectedBody) {
          List<GHIssueComment> prComments;
          try {
              prComments = ghPullRequest.getComments();
          } catch (IOException e) {
              LOGGER.log(Level.WARNING, "Failed to get comments for PR " + ghPullRequest, e);
              // return false in case of an error - probably safer to have multiple comments than possibly none
              return false;
          }
          for (GHIssueComment comment : prComments) {
              if (comment.getBody() != null && comment.getBody().equals(expectedBody)) {
                  return true;
              }
          }
          return false;
      }
docs: Checks whether the specific PR contains a comment with the expected body.
  
  @return true if the PR contains comment with the specified body, otherwise false