private void addPossibleBaseInterfaces(TypeDeclaration typeDecl) { if (typeDecl.hasBaseInterfaces()) { TypeDeclaration curAncestorDecl; for (TypeIterator iter = typeDecl.getBaseInterfaces().getIterator(); iter.hasNext(); ) { curAncestorDecl = iter.getNext().getReferenceBaseTypeDecl(); if (curAncestorDecl != null) { _ancestors.add(curAncestorDecl); addAncestors((InterfaceDeclaration) curAncestorDecl); } } } }