class Const {

  public static boolean classIsOrExtends( Class<?> clazz, Class<?> superClass ) {
    if ( clazz.equals( Object.class ) ) {
      return false;
    }
    return clazz.equals( superClass ) || classIsOrExtends( clazz.getSuperclass(), superClass );
  }

}