code: public void check(Boolean autoRepair, Boolean makeUnique)
        throws MtasParserException {
      if (autoRepair) {
        autoRepair();
      }
      if (makeUnique) {
        makeUnique();
      }
      checkTokenCollectionIndex();
      for (Integer i : tokenCollectionIndex) {
        // minimal properties
        if (tokenCollection.get(i).getId() == null
            || tokenCollection.get(i).getPositionStart() == null
            || tokenCollection.get(i).getPositionEnd() == null
            || tokenCollection.get(i).getValue() == null) {
          clear();
          break;
        }
      }
    }
docs: Check.
  
  @param autoRepair the auto repair
  @param makeUnique the make unique
  @throws MtasParserException the mtas parser exception