TreeImageDisplay node = model.getLastSelectedDisplay();
    void setLeavesViews(Set nodes)    {        TreeImageDisplay node = model.getLastSelectedDisplay();        DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel();        if (node instanceof TreeImageNode) return;        node.removeAllChildren();        node.setChildrenLoaded(Boolean.TRUE);        if (nodes.size() != 0) {            Iterator i = nodes.iterator();            while (i.hasNext())                node.addChildDisplay((TreeImageDisplay) i.next()) ;            buildTreeNode(node, sorter.sort(nodes), dtm);        } else buildEmptyNode(node);        dtm.reload(node);        if (!model.isMainTree()) loadGoIntoTree();    }