docs: public static ClassSymbol outermostClass(Symbol symbol) {
      ClassSymbol curr = symbol.enclClass();
      while (curr.owner != null) {
        ClassSymbol encl = curr.owner.enclClass();
        if (encl == null) {
          break;
        }
        curr = encl;
      }
      return curr;
    }