code: private Method[] settersMethodForField(Field field) {
      List<Method> methods = new ArrayList<>();
      for (Method method : field.getDeclaringClass().getDeclaredMethods()) {
        if (Ascii.toLowerCase(method.getName()).equals("set" + Ascii.toLowerCase(field.getName()))
            && method.getParameterTypes().length == 1) {
          methods.add(method);
        }
      }
      return methods.toArray(new Method[0]);
    }
docs: Creates list of setter methods for a field only in declaring class.