String (ItemWithPresentation value) { TargetPresentation presentation = value.getPresentation(); return Stream.of( presentation.getPresentableText(), presentation.getContainerText(), presentation.getLocationText() ).filter(Objects::nonNull).collect(Collectors.joining(" ")); }