if(genericAccessedElement.equals(b.getVariableDeclaration() /* use generic field */))
return type;
}
}
ITypeBinding result = null;
if(type.getSuperclass() != null) {
ITypeBinding t = type.getSuperclass();
result = findElementDeclarationByName(
genericAccessedElement, isMethod, t,
true /* always skip private declarations in supertypes */,
! t.getPackage().equals(type.getPackage()) /* skip package-private when leaving current package */);
if(result != null)
return result;
}
// go though interfaces as well
for(ITypeBinding i : type.getInterfaces()) {