protected function getGenericIndexes(array $indexes)
    {
        $genericIndexes = array();

        foreach ($indexes as $index) {
            $name = $index['name'];

            if (!isset($genericIndexes[$name])) {
                $genericIndexes[$name] = new Index($name, array($index['column_name']), (bool) $index['unique']);
            } else {
                $genericIndexes[$name]->addColumnName($index['column_name']);
            }
        }

        return array_values($genericIndexes);
    }