code: Symbol resolveMethod(DiagnosticPosition pos,
                           Env<AttrContext> env,
                           Name name,
                           List<Type> argtypes,
                           List<Type> typeargtypes) {
          return lookupMethod(env, pos, env.enclClass.sym, resolveMethodCheck,
                  new BasicLookupHelper(name, env.enclClass.sym.type, argtypes, typeargtypes) {
                      @Override
                      Symbol doLookup(Env<AttrContext> env, MethodResolutionPhase phase) {
                          return findFun(env, name, argtypes, typeargtypes,
                                  phase.isBoxingRequired(),
                                  phase.isVarargsRequired());
                      }});
      }
docs: Resolve an unqualified method identifier.
  @param pos       The position to use for error reporting.
  @param env       The environment current at the method invocation.
  @param name      The identifier's name.
  @param argtypes  The types of the invocation's value arguments.
  @param typeargtypes  The types of the invocation's type arguments.