private static boolean isParentGrouped(AbstractTreeNode<?> parent) {
    while (parent != null) {
      if (parent.getValue() instanceof SuperTypeGroup) return true;
      parent = parent.getParent();
    }
    return false;
  }
private static boolean isParentGrouped(AbstractTreeNode<?> parent)