void (Object node, ResultConsumer<? super Pair<XValue, String>> resultConsumer) { if (node instanceof XValueNodeImpl valueNode) { resultConsumer.onSuccess(Pair.create(valueNode.getValueContainer(), valueNode.getName())); } }