public Collection getStereotypeNames(final Object modelElement)
{
Collection stereotypeNames = new ArrayList();
if (modelElement instanceof ModelElement)
{
ModelElement element = (ModelElement)modelElement;
Collection stereotypes = element.getStereotype();
for (final Iterator iterator = stereotypes.iterator(); iterator.hasNext();)
{
ModelElement stereotype = (ModelElement)iterator.next();
stereotypeNames.add(stereotype.getName());
}
}
else if (modelElement instanceof ModelElementFacade)
{
stereotypeNames = ((ModelElementFacade)modelElement).getStereotypeNames();