private void buildTypeSets() // builds typeSets for easy access of all the objects of a particular type
{
Iterator tit = types.iterator();
while (tit.hasNext())
{
SimpleType st = (SimpleType) tit.next();
Set s = new HashSet();
typeSets.put(st, s);
Iterator oit = objects.iterator();
while (oit.hasNext())