@Nullable
  public static ObjectReference getObjectReference(@NotNull XValueNodeImpl node) {
    XValue valueContainer = node.getValueContainer();
    if (valueContainer instanceof NodeDescriptorProvider) {
      NodeDescriptor descriptor = ((NodeDescriptorProvider)valueContainer).getDescriptor();
      if (descriptor instanceof ValueDescriptorImpl) {
        if (((ValueDescriptorImpl)descriptor).isValueReady()) {
          Value value = ((ValueDescriptorImpl)descriptor).getValue();
          return value instanceof ObjectReference ? (ObjectReference)value : null;
        }
      }
    }

    return null;
  }
@Nullable
  public static ObjectReference getObjectReference(@NotNull XValueNodeImpl node)