code: Variable getVariable(SyntheticVarName name) {
      VarKey varKey = VarKey.create(Kind.SYNTHETIC, name.name());
      return getVariable(varKey);
    }
docs: Looks up a synthetic variable with the given name. The variable must have been created in a
  currently active scope.