!declaredInPackage(root, that.getUnit())) {
that.addError("refined declaration is not visible: " +
message(root));
}
boolean found = false;
TypeDeclaration rootType = (TypeDeclaration) root.getContainer();
for (Declaration refined:
getInterveningRefinements(dec.getName(),
signature, root, type, rootType)) {
if (isOverloadedVersion(refined)) {
//if this member is overloaded, the