code: Symbol resolveIdent(DiagnosticPosition pos, Env<AttrContext> env,
                          Name name, KindSelector kind) {
          return accessBase(
              findIdent(env, name, kind),
              pos, env.enclClass.sym.type, name, false);
      }
docs: Resolve an unqualified (non-method) identifier.
  @param pos       The position to use for error reporting.
  @param env       The environment current at the identifier use.
  @param name      The identifier's name.
  @param kind      The set of admissible symbol kinds for the identifier.