if (obj instanceof ProjectCollection) { setIcon(rootIcon); } else if (obj instanceof Project) {
if (obj instanceof Project) {
        public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel,             boolean expanded, boolean leaf, int row, boolean hasFocus) {            super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, hasFocus);            // Set the icon, depending on what kind of node it is            DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;            Object obj = node.getUserObject();            if (obj instanceof ProjectCollection) {                setIcon(rootIcon);            } else if (obj instanceof Project) {                setIcon(projectIcon);            } else if (obj instanceof AnalysisRun) {                setIcon(mgIcon);            }            return this;        }