public void showNodes(final Collection<NodeType> toShow, final boolean addNeighbours) {
    for (final NodeType node : toShow) {
      Preconditions.checkNotNull(node, "The list of nodes to show contained an invalid node");

      ((IViewNode<?>) node.getRawNode()).setVisible(true);
    }

    if (addNeighbours) {
      showNeighbors(toShow);
    }

    notifyVisibilityListeners();
  }
Selects a list of nodes and unselects another list of nodes.

@param toSelect The list of nodes to select.
@param toUnselect The list of nodes to unselect.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/AbstractZyGraph.java