public void addAllOperations(
     org.eclipse.ocl.pivot.@NonNull Class type, @Nullable FeatureFilter featureFilter) {
   if (accepts(
           PivotPackage.Literals.ITERATION) // If ITERATION is acceptable then so too is OPERATION
       && (requiredType
           != PivotPackage.Literals
               .NAMESPACE)) { // Don't really want operations when looking for NAMESPACE
     assert environmentFactory.getMetamodelManager().isTypeServeable(type);
     type = PivotUtil.getUnspecializedTemplateableElement(type);
     CompleteClass completeClass = environmentFactory.getMetamodelManager().getCompleteClass(type);
     String name2 = name;
     if (name2 != null) {
       for (Operation operation : completeClass.getOperations(featureFilter, name2)) {
         if ((operation != null) /*&& (operation.isStatic() == selectStatic)*/) {
           addElement(name2, operation);
         }
       }
     } else {
       for (Operation operation : completeClass.getOperations(featureFilter)) {
         if ((operation != null) /*&& (operation.isStatic() == selectStatic)*/) {
           addNamedElement(operation);
         }
       }
     }
   }
 }
 public void addAllElements(
     org.eclipse.ocl.pivot.@NonNull Class asClass, @NonNull ScopeView scopeView) {
   Attribution attribution = PivotUtilInternal.getAttribution(asClass);
   attribution.computeLookup(asClass, this, scopeView);
   org.eclipse.ocl.pivot.Class asUnspecializedClass =
       PivotUtil.getUnspecializedTemplateableElement(asClass);
   org.eclipse.ocl.pivot.Package asPackage = asUnspecializedClass.getOwningPackage();
   if (asPackage != null) {
     attribution = PivotUtilInternal.getAttribution(asPackage);
     attribution.computeLookup(asPackage, this, scopeView);
   }
   { // FIXME redundant
     asPackage = asUnspecializedClass.getOwningPackage();
     if (asPackage != null) {
       attribution = PivotUtilInternal.getAttribution(asPackage);
       attribution.computeLookup(asPackage, this, scopeView);
     }
   }
 }