code: public boolean isSelfLabel() {
          Set<Node> nodes = getNodes();
          return nodes.size() == 1 && nodes.iterator().next().getSelfLabel() == this;
      }
docs: Returns true if this label is a "self label",
  which means the label is the name of a {@link Node}.