docs: public static Map<String, Object> getConstantFrom(Class clazz, // NL
                                                   boolean findAncestor, boolean findInterfaces) {
  
          HashMap<String, Object> map = new HashMap<String, Object>();
  
          if (findInterfaces) {
              for (Class interfaceClass : clazz.getInterfaces()) {
                  fillConstantFrom(interfaceClass, map);
              }
          }
  
          if (findAncestor) {
              Class superClass = clazz;
              while (superClass != null) {
                  fillConstantFrom(superClass, map);
                  superClass = superClass.getSuperclass();
              }
          }
  
          fillConstantFrom(clazz, map);
  
          return map;
      }