docs: public static SuggestedFix renameMethod(
        MethodTree tree, final String replacement, VisitorState state) {
      // Search tokens from beginning of method tree to beginning of method body.
      int basePos = ((JCTree) tree).getStartPosition();
      int endPos =
          tree.getBody() != null
              ? ((JCTree) tree.getBody()).getStartPosition()
              : state.getEndPosition(tree);
      List<ErrorProneToken> methodTokens =
          ErrorProneTokens.getTokens(
              state.getSourceCode().subSequence(basePos, endPos).toString(), state.context);
      for (ErrorProneToken token : methodTokens) {
        if (token.kind() == TokenKind.IDENTIFIER && token.name().equals(tree.getName())) {
          int nameStartPosition = basePos + token.pos();
          int nameEndPosition = basePos + token.endPos();
          return SuggestedFix.builder()
              .replace(nameStartPosition, nameEndPosition, replacement)
              .build();
        }
      }
      // Method name not found.
      throw new AssertionError();
    }