code: public static Set<Constructor<?>> getConstructors(Class<?> target, ConstructorFilter filter) {
          
          Set<Constructor<?>> cons = new HashSet<Constructor<?>>();
          Constructor<?>[] constructors = target.getDeclaredConstructors();
          for(Constructor<?> 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.