void (@NotNull ActionEvent e) { if (myCurrentNode != null) { boolean wasChanged = myCurrentNode.accepted != myCheckBox.isSelected(); myCurrentNode.accepted = myCheckBox.isSelected(); if (wasChanged) { updateAncestorsUi(myCurrentNode.accepted, myCurrentNode); updateChildrenUi(myCurrentNode); } if (myCurrentTree != null) { myCurrentTree.repaint(); } } }