@staticmethod
def __filter_snippets_by_xpath(snippets: list, xpath: str) ->list:
    """
        Check the each snippet in the list and return those that has a full_xpath matching the xpath param

        :param snippets: list of snippets
        :param xpath: xpath to check
        :return: list of only those that contain the xpath in their full_xpath attribute
        """
    filtered_snippets = list()
    for s in snippets:
        full_xpath = s.get('full_xpath', '')
        if xpath in full_xpath:
            filtered_snippets.append(s)
    return filtered_snippets
