System.out.println("Setting analysis run's tree model in bug tree...");
    private void synchAnalysisRun(AnalysisRun analysisRun) {        boolean modelChanged = false;                if (analysisRun != currentAnalysisRun) {            modelChanged = true;            // If this is the first time the analysis run is being shown in            // the bug tree, it won't have a tree model yet.            if (analysisRun.getTreeModel() == null) {                System.out.println("Creating new tree model for analysis run...");                DefaultMutableTreeNode bugRootNode = new DefaultMutableTreeNode();                DefaultTreeModel bugTreeModel = new DefaultTreeModel(bugRootNode);                analysisRun.setTreeModel(bugTreeModel);            }                    }                // Make sure that the sort order is correct.        String currentSortOrder = sortOrderChooser.getSelectedItem().toString();        if (!analysisRun.getSortOrder().equals(currentSortOrder)) {            populateAnalysisRunTreeModel(analysisRun, currentSortOrder);        }        if (modelChanged) {            System.out.println("Setting analysis run's tree model in bug tree...");            bugTree.setModel(analysisRun.getTreeModel());            currentAnalysisRun = analysisRun;        }                // TODO: restore state of tree! I.e., which nodes expanded, and selection    }