code: private static Set<String> findExtendedTypes( final Component baseComponent ) {
  
  		final LinkedList<AbstractType> types = new LinkedList<AbstractType>();
  		types.addAll(ComponentHelpers.findAllExtendedComponents(baseComponent));
  		types.addAll(ComponentHelpers.findAllFacets(baseComponent));
  
  		final Set<String> typeNames = new LinkedHashSet<String>();
  		for (final AbstractType type : types)
  			typeNames.add(type.getName());
  
  		return typeNames;
  	}
docs: Finds all the components and the facets extended by the given component.
  <p>
  The component itself is included in the returned set.
  </p>
  
  @param baseComponent the component whose ancestors must be returned.
  @return the names of all the ancestor components and facets of the given component.