- if (!(node instanceof ImmutableUnkeyedListNode)) {
- throw new UnsupportedOperationException(String.format("Cannot initialize from class %s", node.getClass()));
+ if (!(node instanceof ImmutableUnkeyedListNode immutableNode)) {
+ throw new UnsupportedOperationException("Cannot initialize from class " + node.getClass());