public void showNode(final NodeType node, final boolean show) {
    Preconditions.checkNotNull(node, "Node argument can't be null");

    ((IViewNode<?>) node.getRawNode()).setVisible(show);

    if (show) {
      @SuppressWarnings("unchecked")
      final ArrayList<NodeType> nodes = Lists.newArrayList(node);
      showNeighbors(nodes);
    }

    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