code: public void logAccessErrorInternal(Env<AttrContext> env, JCTree tree, Type type) {
          AccessError error = new AccessError(env, env.enclClass.type, type.tsym);
          logResolveError(error, tree.pos(), env.enclClass.sym, env.enclClass.type, null, null, null);
      }
docs: used by TransTypes when checking target type of synthetic cast