public static Object unwrapWrapper(Object o) {
    Object p = unwrapNavigatable(o);
    return p instanceof MyNodeWrapper nodeWrapper ? nodeWrapper.getValue() :
           p instanceof MyGroupWrapper groupWrapper ? groupWrapper.getValue() : p;
  }
public static Object unwrapWrapper(Object o)