code: public AptEventSet initSuperEventSet()
      {
          // This will be common, so short circuit quickly
          AptControlInterface superControl = _controlIntf.getSuperClass();
          if (superControl == null)
              return null;
  
          // Compute a hash set containing the qualified names of all super interfaces
          // for this EventSet
          HashSet<String> extendNames = new HashSet<String>();
          for (InterfaceType superType: _eventSet.getSuperinterfaces())
          {
              InterfaceDeclaration superDecl = superType.getDeclaration();
              if (superDecl != null)
                  extendNames.add(superDecl.getQualifiedName());
          }
  
          // Starting with the parent of the ControlInterface declaring this EventSet, look
          // for a parent interface that declares ones of these super interfaces as an event
          // set
          while (superControl != null)
          {
              Collection<AptEventSet> superEventSets = superControl.getEventSets();
              for (AptEventSet superEventSet : superEventSets)
              {
                  if (extendNames.contains(superEventSet.getClassName()))
                      return superEventSet;
              }
  
              superControl = superControl.getSuperClass();
          }
  
          // Nothing found, so no super event set
          return null;
      }
docs: Checks to see if this EventSet extends an EventSet declared on a parent control interface.  If
  found it will return the parent EventSet, or return null if not found.