code: public static Method getSetterMethod(Class<?> cType, String fieldName, Class<?> paramType) {
  
          Class<?> subType = getSubType(paramType);
          String methodName = getMethodName(fieldName, SET_METHOD_PREFIX);
  
          try {
              return cType.getMethod(methodName, paramType);
          } catch (NoSuchMethodException e) {
              try {
                  return cType.getMethod(methodName, subType);
              } catch (NoSuchMethodException e1) {
                  //log.info("setter method not found : " + fieldName);
                  return null;
              }
          }
      }
docs: Gets setter method.
  
  @param cType     the c type
  @param fieldName the field name
  @param paramType the param type
  @return the setter method