public static boolean isDescendant ( TypeDef item , TypeDef candidate ) { if ( item == null || candidate == null ) { return false ; } else if ( candidate . isAssignableFrom ( item ) ) { return true ; } return false ; }
Checks if a type is an descendant of an other type