code: protected static boolean isStatic(Env<AttrContext> env) {
          return env.outer != null && env.info.staticLevel > env.outer.info.staticLevel;
      }
docs: An environment is "static" if its static level is greater than
  the one of its outer environment