'Look for a tab with the specified type.  Returns the first matching tab.'

@staticmethod
def get_tab_by_type(tab_list, tab_type):

    return next((tab for tab in tab_list if (tab.type == tab_type)), None)
