class LabelDuplicationDRGElementValidator extends LabelDuplicationValidator {

    @Override
    public List<String> validate(DMNModelRepository dmnModelRepository) {
        List<String> errors = new ArrayList<>();
        if (dmnModelRepository == null) {
            return errors;
        }

        for (TDefinitions definitions: dmnModelRepository.getAllDefinitions()) {
            validateElements(dmnModelRepository.findDRGElements(definitions), errors);
        }

        return errors;
    }

}