code: public Method getMethod(final String name) {
        if (StringUtils.isNullOrBlank(name)) {
           return null;
        }
        return getMethods().stream().filter(method -> method.getName().equals(name)).findFirst().orElse(null);
     }
docs: Gets method.
  
  @param name the name
  @return the method