def METHOD_NAME(self, name):
    """Returns the QModelIndex on which a specification with
    the given name is located or invalid index if it is not found."""
    row = self.specification_row(name)
    if row == -1:
        return QModelIndex()
    return self.createIndex(row, 0)