code: private void patchMethodAsDeprecatedRedirector(MethodDeclaration methodToPatch, String toMethodName,
              Type returnType, Parameter... parameters) {
          methodToPatch.setType(returnType);
          for (Parameter parameter : parameters) {
              methodToPatch.addParameter(parameter);
          }
          methodToPatch.addAnnotation(new MarkerAnnotationExpr("Deprecated"));
  
          methodToPatch.setJavadocComment(
                  formatMultilineJavadoc(1, "@deprecated This was renamed to " + toMethodName + " please migrate"));
  
          MethodCallExpr methodCall = methodCallExpr("this", toMethodName);
          for (Parameter parameter : parameters) {
              methodCall.addArgument(new NameExpr(parameter.getName()));
          }
  
          BlockStmt body = new BlockStmt();
          body.addStatement(new ReturnStmt(methodCall));
          methodToPatch.setBody(body);
      }
docs: Given a method declaration node this method will replace it's code and
  signature with code to redirect all calls to it to the
  <code>newMethodName</code>. Method signatures of both methods must match
  exactly.
  
  @param methodToPatch
  @param toMethodName
  @param returnType
  @param parameters