code: public Set<Method> getMethods(final String name, final int numParams) {
        if (StringUtils.isNullOrBlank(name) || numParams < 0) {
           return Collections.emptySet();
        }
        return ClassDescriptorCache.getInstance()
                                   .getClassDescriptor(clazz)
                                   .getMethods(accessAll)
                                   .stream()
                                   .filter(f -> f.getName().equals(name) && f.getParameterCount() == numParams)
                                   .collect(Collectors.toSet());
     }
docs: Gets methods.
  
  @param name      the name
  @param numParams the num params
  @return the methods