class BidirectionalTracePruner {

  private static List<String> reverseHops(BidirectionalTrace trace) {
    return Optional.ofNullable(trace.getReverseTrace())
        .map(BidirectionalTracePruner::hops)
        .orElse(ImmutableList.of());
  }

  private  BidirectionalTracePruner();

}