@Override
    public <T> Set<Constructor<T>> getConstructorsForType(ConstructorFilter filter, Class<T> ofType) throws IllegalArgumentException {
        if (!ofType.equals(target)) {
            throw new IllegalArgumentException("ofType must be target class: " + target);
        }
        return ConstructorUtils.getConstructorsForType(ofType, filter);
    }
@ Override public < T > Set < Constructor < T > > getConstructorsForType ( ConstructorFilter filter , Class < T > ofType ) throws IllegalArgumentException { if ( ! ofType . equals ( target ) ) { throw new IllegalArgumentException ( "ofType must be target class: " + target ) ; } return ConstructorUtils . getConstructorsForType ( ofType , filter ) ; }
Returns set of constructors that matches the filter parameter.

@param filter Filter to apply.
@param ofType Class to get constructor for, must match target class.

@return constructors that matches the filter parameter.

@throws IllegalArgumentException if ofType does not match the target class.