code: public static Constructor<?> getConstructor(Class<?> target, ConstructorFilter filter) {
          
          Set<Constructor<?>> cons = getConstructors(target, filter);
          if(cons.isEmpty()) {
              throw new IllegalArgumentException("No constructor found mathcing filter " + filter);
          }
          return cons.iterator().next();
      }
docs: Returns the first constructor found that matches the filter parameter.
  
  @param taget Class to get constructor for.
  @param filter Filter to apply.
  
  @return the first constructor found that matches the filter parameter.
  @throws IllegalArgumentException if ofType does not match the target class.
  or no constructor is found matching the filter.