@SuppressWarnings({"rawtypes", "unchecked"})
    @API(status = API.Status.STABLE)
    public final <T> @NonNull T formatCaption(final @NonNull CaptionFormatter<?, T> formatter) {
        return (T) this.context.formatCaption((CaptionFormatter) formatter, this.errorCaption, this.captionVariables());
    }
Formats the error caption using the given {@code formatter}.

@param <T>        the type produced by the formatter
@param formatter the formatter
@return the formatted caption
cloud-core/src/main/java/org/incendo/cloud/exception/parsing/ParserException.java