void (TreeSelectionEvent e) { final TreePath leadSelectionPath = e.getNewLeadSelectionPath(); if (leadSelectionPath == null) return; final DefaultMutableTreeNode node = (DefaultMutableTreeNode)leadSelectionPath.getLastPathComponent(); mySelectedClass = (Class<?>)node.getUserObject(); updateSelectedProperties(); }