public MethodNode getMethod(String name) {
    return getNode(methods, name);
  }
Returns the first method found with the specified name (including both
script and class methods).

@param name the name of the method of interest
@return the first method found with the specified name
spock-core/src/main/java/org/spockframework/util/inspector/AstInspector.java