Adds an environment check made by the class

@param name
@param opts {Object?} see _requireClass
function(name, location) {
      var t = this;
      var requiredOpts = {
        load: t.isLoadScope(),
        defer: t.__inDefer,
        construct: t.__classMeta && t.__classMeta.functionName == "$$constructor",
        location: location
      };
      var dest = t.__environmentChecks.required[name];
      if (!dest) {
        dest = t.__environmentChecks.required[name] = {};
      }
      if (requiredOpts.load) {
        dest.load = true;
      }
      if (requiredOpts.defer) {
        dest.defer = true; 
      }
      if (requiredOpts.construct) {
        dest.construct = true;
      }
      t._requireClass("qx.core.Environment", { location: location });
      if (qx.tool.compiler.ClassFile.ENVIRONMENT_CONSTANTS[name] === undefined) {
        var entry = qx.tool.compiler.ClassFile.ENVIRONMENT_CHECKS[name];
        if (entry && entry.className) {
          t._requireClass(entry.className, { load: requiredOpts.load, location: location });
          dest.className = entry.className;
        } else if (!entry) {
          t._requireClass(name, { load: requiredOpts.load, location: location });
        }
      }
    }