// look for the default interface first.
for( int i=0; i<count; i++ ) {
IImplementedInterfaceDecl impl = t.getImplementedInterface(i);
if(impl.isSource())
continue;
IInterfaceDecl c = getCustom(impl);
if(impl.isDefault() && c!=null)
return c;
}
// if none is found, look for any non-source interface
Set<IInterfaceDecl> types = new HashSet<IInterfaceDecl>();
for( int i=0; i<count; i++ ) {
IImplementedInterfaceDecl impl = t.getImplementedInterface(i);
if(impl.isSource())
continue;
IInterfaceDecl c = getCustom(impl);
if(c !=null)
types.add(c);
}
if(types.isEmpty())