int index = o.indexOf("TOP");
int index = o.indexOf("SUP");
    private ArrayList findParent(ArrayList list, String o) {	boolean parent = true;	String arg = null;	ArrayList objects = worker.getObjects();		int index = o.indexOf("TOP");	    	    	if (index > 0) {	    String s = o.substring(0,index);	    	    if (!(list.contains(s)))		list.add(o.substring(0,index));	    	    int k = o.indexOf("(");	    int l = o.indexOf(")");	    	    String finalS = o.substring(k+1,l);	    int z = 0;	    	    boolean notEmpty = true;	    	    while (z < objects.size() && notEmpty) {		arg = (String)objects.get(z);		if (arg.startsWith(finalS)) {		    notEmpty = false;		}		z++;	    }	    list = findParent(list,arg);	}	else {	    if (!(list.contains(o)))		list.add(o);	}	return list;    }