code: public boolean hasPossibleMethod(String name, Expression arguments) {
          int count = 0;
  
          if (arguments instanceof TupleExpression) {
              TupleExpression tuple = (TupleExpression) arguments;
              // TODO this won't strictly be true when using list expansion in argument calls
              count = tuple.getExpressions().size();
          }
          ClassNode node = this;
          do {
              for (MethodNode method : getMethods(name)) {
                  if (method.getParameters().length == count && !method.isStatic()) {
                      return true;
                  }
              }
              node = node.getSuperClass();
          }
          while (node != null);
          return false;
      }
docs: Returns true if the given method has a possibly matching instance method with the given name and arguments.
  
  @param name      the name of the method of interest
  @param arguments the arguments to match against
  @return true if a matching method was found