protected boolean hasMethod(T model, String method, int params) {
        requireNonNull(model);
        requireNonNull(method);
        requireNonNull(params);
        for (Method m : model.getMethods()) {
            if (method.equals(m.getName()) && m.getFields().size() == params) {
                return true;
            }
        }
        return false;
    }
Returns if a method with the specified signature exists.

@param model   the model
@param method  the method name to look for
@param params  the number of parameters in the signature
@return        <code>true</code> if found, else <code>false</code>
common-parent/codegen/src/main/java/com/speedment/common/codegen/controller/AutoEquals.java