code: public static Predicate<DirectedEdge> hasDestination(final Node node) {
          return input -> {
              assert input != null;
              return input.destination.equals(node);
          };
      }
docs: // Edge Predicates