private boolean isComplex ( final Field field ) { final Class < ? > declaringClass = field . getType ( ) ; return ( declaringClass . equals ( List . class ) || declaringClass . equals ( Set . class ) || declaringClass . equals ( Map . class ) ) || declaringClass . getTypeName ( ) . endsWith ( "[][]" ) || declaringClass . getTypeName ( ) . endsWith ( "[]" ) ; }
Check if the field have complex suitable generator