static List<Result> expectAndSkipTraits(IdlModelLoader loader) {
        List<Result> results = new ArrayList<>();
        IdlInternalTokenizer tokenizer = loader.getTokenizer();
        while (tokenizer.getCurrentToken() == IdlToken.AT) {
            results.add(expectAndSkipTrait(loader));
            tokenizer.skipWsAndDocs();
        }
        return results;
    }
Parse all traits before a shape or member, or inside an {@code apply} block.

@param loader   IDL parser.
@return Returns the parsed traits.
smithy-model/src/main/java/software/amazon/smithy/model/loader/IdlTraitParser.java