@Override
        public Class<?> stringShape(StringShape shape) {
            if (TraitCodegenUtils.isJavaString(symbolProvider.toSymbol(shape))) {
                return StringTrait.class;
            }
            return AbstractTrait.class;
        }
Returns the base class to use for a trait.
smithy-trait-codegen/src/main/java/software/amazon/smithy/traitcodegen/generators/TraitGenerator.java