docs: public boolean containsReturnValue(ValueNumberFactory factory) {
          for (int i = 0; i + 1 < array.length; i += 2) {
              int valueNumber = array[i];
              if (valueNumber < 0) {
                  break;
              }
              int lockCount = array[i + 1];
              if (lockCount > 0 && factory.forNumber(valueNumber).hasFlag(ValueNumber.RETURN_VALUE)) {
                  return true;
              }
          }
          return false;
      }