private static List<BarNode> listNodes(Filter<BarNode> filter, Comparator<BarNode> sorter) {
		List<BarNode> nodes = new ArrayList<BarNode>(NUM_SLOTS);
		for (int i = 0; i < NUM_SLOTS; i++) {
			BarNode cur = getNode(i);
			if (cur != null && (filter == null || filter.accept(cur)))
				nodes.add(cur);
		}
		if (nodes.size() > 0 && sorter != null && sorter != SLOT_ORDER)
			Collections.sort(nodes, sorter);
		return nodes;
	}