public Iterable<ValueType> allValues() {
    List<ValueType> values = Lists.newArrayList();
    if (kind().isValue()) {
      values.add(this);
    }
    values.addAll(nested);
    return values;
  }
Check if mongo repository should be generated (for annotation {@code @Mongo.Repository}).
For criteria repository see {@link #isGenerateCriteriaRepository()}
value-processor/src/org/immutables/value/processor/meta/ValueType.java