private static boolean isInsideMenu(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;
  }
private static boolean isInsideMenu(TreePath path)