@staticmethod
def _choose_indicator_color(color: str) ->int:
    """Return the selected color number by its given name.

        This is color which the indicators will be highlighted and the
        progress bar itself, from the list.

        Checking for a possible incorrect, passed parameter, passes in the
        _CheckParams() class.
        """
    return {'black': 0, 'red': 1, 'green': 2, 'yellow': 3, 'blue': 4,
        'magenta': 5, 'cyan': 6, 'gray': 7, 'white': 8}[color]
