private String processAnsiColorCodes(final String utf8String) {
            if (!(consumer instanceof BaseConsumer) || ((BaseConsumer<?>) consumer).isRemoveColorCodes()) {
                return ANSI_COLOR_PATTERN.matcher(utf8String).replaceAll("");
            }
            return utf8String;
        }
@return a {@link CountDownLatch} that may be used to wait until {@link #close()} has been called.
core/src/main/java/org/testcontainers/containers/output/FrameConsumerResultCallback.java