private static int getInheritanceLevel(Class<?> aClass) {
    int level = 0;
    while (aClass.getSuperclass() != null) {
      level++;
      aClass = aClass.getSuperclass();
    }
    return level;
  }
private static int getInheritanceLevel(Class<?> aClass)