question: private static < E extends FType > boolean isUserDefinedType ( FTypeRef typeRef , Class < E > clazz ) { if ( typeRef == null ) return false ; FType type = getActualDerived ( typeRef ) ; if ( type != null ) { if ( clazz . isInstance ( type ) ) { return true ; } } return false ; }
target:  Returns true if the referenced type is a given user-defined type. This function handles typedefs correctly.