@Nullable
    @Override
    public Icon getIcon(Reference reference) {
      if (DomUtil.hasXml(reference.getId())) {
        return getIconForActionOrGroup(reference.getId().getValue());
      }

      return getIconForActionOrGroup(reference.getRef().getValue());
    }
@Nullable
    @Override
    public Icon getIcon(Reference reference)