void (@NotNull AnActionEvent e) { final CheckedTreeNode[] selectedNodes = mySuitesTree.getSelectedNodes(CheckedTreeNode.class, null); for (CheckedTreeNode selectedNode : selectedNodes) { final Object userObject = selectedNode.getUserObject(); if (userObject instanceof CoverageSuite selectedSuite) { if (selectedSuite.canRemove()) { myCoverageManager.removeCoverageSuite(selectedSuite); TreeUtil.removeLastPathComponent(mySuitesTree, new TreePath(selectedNode.getPath())); } } } }