code: public boolean isLocal() {
          return
              (owner.kind & (VAR | MTH)) != 0 ||
              (owner.kind == TYP && owner.isLocal());
      }
docs: Is this symbol declared (directly or indirectly) local
  to a method or variable initializer?
  Also includes fields of inner classes which are in
  turn local to a method or variable initializer.