code: static Map<String, Method> getAllGetters(Class<?> clazz) {
          Map<String, Method> methods = new HashMap<String, Method>();
          while (!clazz.equals(Object.class)) {
              for (Method m : clazz.getDeclaredMethods()) {
                  if (Modifier.isStatic(m.getModifiers())) {
                      continue;
                  }
                  String propertyName = getGetterName(m);
                  if (shouldIgnore(m)) {
                      methods.put(propertyName, null);
                  }
                  if (propertyName!=null && !methods.containsKey(propertyName)) {
                      methods.put(propertyName, m);
                  }
              }
              clazz = clazz.getSuperclass();
          }
          return methods;
      }
docs: Get all getters of this class, includes inherited methods, but excludes
  static methods. Methods marked as @JsonIgnore are put to as null.
  
  @param clazz
  @return