if (selected != null && selected != currentBugInstance) {
if (selected != null) {
    private void bugTreeSelectionChanged(TreeSelectionEvent e) {	BugInstance selected = getCurrentBugInstance();	if (selected != null && selected != currentBugInstance) {	    synchBugInstance(selected);	}    }