String (@NotNull Crumb crumb, Predicate<Action> filter) { String applied = crumb.getContextActions().stream().filter(filter).map(this::applyAction) .reduce((left, right) -> left + ", " + right).orElse(""); return "{" + applied + "}"; }