@classmethod
def from_excellon(cls, line, **kwargs):
    """ Create a ToolSelectionStmt from an excellon file line.

        Parameters
        ----------
        line : string
            Line from an Excellon file

        Returns
        -------
        tool_statement : ToolSelectionStmt
            ToolSelectionStmt representation of `line.`
        """
    line = line[1:]
    compensation_index = None
    if len(line) <= 3:
        tool = int(line)
    else:
        tool = int(line[:2])
        compensation_index = int(line[2:])
    return cls(tool, compensation_index, **kwargs)
