code: protected int countComponentContainPaxWicketBeanAnnotatedFieldsHierachical(Class<?> component) {
          Class<?> clazz = component;
          int numberOfInjectionFields = 0;
          while (clazz != null && !isBoundaryClass(clazz)) {
              for (Field field : clazz.getDeclaredFields()) {
                  if (field.isAnnotationPresent(Inject.class)) {
                      numberOfInjectionFields++;
                  }
              }
              clazz = clazz.getSuperclass();
          }
          return numberOfInjectionFields;
      }
docs: <p>countComponentContainPaxWicketBeanAnnotatedFieldsHierachical.</p>
  
  @param component a {@link java.lang.Class} object.
  @return a int.