if (selected == currentBugInstance) return;  if (!viewBugDetailsItem.isSelected()) return;
    private void synchBugInstance(BugInstance selected) {	// Update source view	// TODO: only do this when the detail window is displayed AND	// the source code tab is chosen.	SourceLineAnnotation primarySrcLine = selected.getPrimarySourceLineAnnotation();	if (primarySrcLine != null) {	    Project project = getCurrentProject();	    AnalysisRun analysisRun = getCurrentAnalysisRun();	    if (project == null) throw new IllegalStateException("null project!");	    if (analysisRun == null) throw new IllegalStateException("null analysis run!");	    viewSource(project, analysisRun, primarySrcLine);	}    }