public static AnsiColorFormatter detect() {
        return isAnsiEnabled() ? FORCE_COLOR : NO_COLOR;
    }
Detects if ANSI colors are supported and returns the appropriate Ansi enum variant.

<p>This method differs from using the {@link AnsiColorFormatter#AUTO} variant directly because it will
detect any changes to the environment that might enable or disable colors.

@return Returns the detected ANSI color enum variant.
smithy-cli/src/main/java/software/amazon/smithy/cli/AnsiColorFormatter.java