code: public static CodeRangeBuffer addCodeRange(CodeRangeBuffer pbuf, ScanEnvironment env, int from, int to) {
          return addCodeRange(pbuf, env, from, to, true);
      }
docs: add_code_range, be aware of it returning null!