class CheckExternalFilter extends AbstractHeaderEntryFilter {

    public static CheckExternalFilter shouldWriteToExternal(final Map<String, HeaderDefinition> headerDefinitions) {
        return new CheckExternalFilter(headerDefinitions,
                isNull().or(HeaderDefinition::shouldWriteToExternalHeaders));
    }

    private  CheckExternalFilter(final Map<String, HeaderDefinition> headerDefinitions,
            final Predicate<HeaderDefinition> headerDefinitionPredicate);

}