void (CheckedTreeNode root) { Object userObject = root.getUserObject(); if (userObject instanceof IntentionActionMetaData actionMetaData) { myIntentionToCheckStatus.put(actionMetaData, root.isChecked()); } else { visitChildren(root, new CheckedNodeVisitor() { @Override public void visit(CheckedTreeNode node) { refreshCheckStatus(node); } }); } }