void (MouseEvent e) { final TreePath path = getPath(e); if (path == null) { return; } if (e.getButton() != MouseEvent.BUTTON1) { return; } final Object selected = path.getLastPathComponent(); if (getTreeStep().isSelectable(selected, extractUserObject(selected))) { handleSelect(true, e); } else { if (!TreeUtil.isLocationInExpandControl(myWizardTree, path, e.getX(), e.getY())) { toggleExpansion(path); } } }