while (skip
|| ((owner1.kind & (VAR | MTH)) != 0 &&
(owner1.flags_field & STATIC) == 0)) {
// Ceylon: we only take new outer class skip orders from types, never from methods/vars
if(owner1.kind == TYP)
skip = owner1.skipOuterClass();
owner1 = owner1.owner;
}
if (owner1.kind == TYP) {
ct.setEnclosingType(owner1.type);
}