code: @SuppressWarnings("unchecked")
      public static <T> Set<Constructor<T>> getConstructorsForType(Class<T> target, ConstructorFilter filter) {
          
          Set<Constructor<T>> cons = new HashSet<Constructor<T>>();
          Constructor<T>[] constructors = (Constructor<T>[]) target.getDeclaredConstructors();
          for(Constructor<T> constructor : constructors) {
              if(filter.passFilter(constructor)) {
                  cons.add(constructor);
              }
          }
          return cons;
      }
docs: Returns set of constructors that matches the filter parameter.
  
  @param target Class to get constructor for.
  @param filter Filter to apply.
  
  @return constructors that matches the filter parameter.
  
  @throws IllegalArgumentException if ofType does not match the target class.