private Set<JEnumType> findExtraEnums(AcceptsModelVisitor method) {
final Set<JEnumType> toReturn = new LinkedHashSet<JEnumType>();
final Set<JEnumType> referenced = new HashSet<JEnumType>();
// Called from the adder visitor below on each EntityProxy seen
final ModelVisitor remover = new AllReachableTypesVisitor(model) {
@Override
void examineTypeOnce(JClassType type) {
JEnumType asEnum = type.isEnum();
if (asEnum != null) {
referenced.add(asEnum);