/**Returns an array of all Polymorphisms present in this sequence at the top level*/
public Polymorphism[] getPolys() {
Polymorphism[] polys = new Polymorphism[countPolys()];
int polypos = 0;
for (Iterator<SequenceElement> i = sequence.iterator(); i.hasNext(); ) {
SequenceElement e = i.next();
if (e instanceof Polymorphism) {
polys[polypos++] = (Polymorphism) e;
}
}
return polys;