private NodeDescriptor<?> getDescriptor() {
      Object object = getUserObject();
      return object instanceof NodeDescriptor ? (NodeDescriptor<?>)object : null;
    }
private NodeDescriptor<?> getDescriptor()