@staticmethod
def get_reference(label, link_title=None):
    """
        Get RST text to create a reference to the given label
        :param label: Name of the label to link to
        :param link_title: Text for the link
        :return: String with the inline reference text
        """
    if link_title is not None:
        return ':ref:`%s <%s>`' % (link_title, label)
    else:
        return ':ref:`%s`' % label
