@Override
    public List<ValidationEvent> validate(Model model) {
        TextIndex textIndex = TextIndex.of(model);
        List<ValidationEvent> validationEvents = new ArrayList<>();
        for (TextInstance text : textIndex.getTextInstances()) {
            validationEvents.addAll(getValidationEvents(text));
        }
        return validationEvents;
    }
Runs a full text scan on a given model and stores the resulting TextOccurrences objects.

Namespaces are checked against a global set per model.

@param model Model to validate.
@return a list of ValidationEvents found by the implementer of getValidationEvents per the
         TextOccurrences provided by this traversal.
smithy-linters/src/main/java/software/amazon/smithy/linters/NoninclusiveTermsValidator.java