boolean (@NotNull MouseEvent event) { final TreePath path = getTree().getPathForRow(getTree().getLeadSelectionRow()); if (path != null) { final InspectionConfigTreeNode node = (InspectionConfigTreeNode)path.getLastPathComponent(); if (node.isLeaf()) { model.swapInspectionEnableState(); } } return true; }