public boolean isGenerateCriteriaRepository() {
    return constitution.protoclass().criteriaRepository().isPresent();
  }
Check if criteria repository should be generated. Usually means {@code @Criteria.Repository}
annotation is present.
This type of repository is different from (legacy) mongo repository identified by
{@code @Mongo.Repository}.
@see #isGenerateRepository()
value-processor/src/org/immutables/value/processor/meta/ValueType.java