boolean (TreePath path) { if (path.getPathCount() < 2) return false; DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getPathComponent(1); Group group = CustomizationUtil.getGroupForNode(node); if (group != null) { String groupId = group.getId(); return groupId != null && groupId.contains("Menu"); } return false; }