def METHOD_NAME(self, line_style):
    for index, style in enumerate(self._styles):
        if (style[1] == line_style) or (style[1] is None and line_style == ""):
            return index
    return -1