public static <C> Constructor<C> getConstructor(Class<C> type, Class<?>[] givenTypes) throws NoSuchMethodException {
        return type.getConstructor(givenTypes);
    }
Returns the constructor where the formal parameter list matches the
givenTypes argument.

It is advisable to first call
{@link #getConstructorParameters(java.lang.Class, java.lang.Class[])}
to get the parameters.

@param type type
@param givenTypes parameter types
@return matching constructor
@throws NoSuchMethodException
querydsl-core/src/main/java/com/querydsl/core/util/ConstructorUtils.java