def get_specified_companies_list(self, company_names, companies_str):
        """Get the list of specified companies.

        Args:
            company_names (list): List of company names.
            companies_str (str): String containing specified companies.

        Returns:
            list: List of specified companies.
        """
        company_list_set = set(map(str.strip, map(str.lower, companies_str.split("*"))))
        company_names_set = set(map(str.lower, company_names))
        companies_to_get = list(company_names_set.intersection(company_list_set))
        return companies_to_get
Get the list of specified companies.

        Args:
            company_names (list): List of company names.
            companies_str (str): String containing specified companies.

        Returns:
            list: List of specified companies.
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/SharedCode/bitsight_client.py