I would never use the proposed style for Java. This is simpler and easier to understand for anyone with basic knowledge of Java. Readability is more important than fancy features:
if (obj instanceof Point p) {
foo(p.x(), p.y());
}