public function getColumnsFor($input)
    {
        if (!is_array($input)) {
            $input = array($input);
        }

        $it = new \RecursiveIteratorIterator(new \RecursiveArrayIterator($input));

        $fieldsNames = iterator_to_array($it, false);

        return array_intersect_key($this->getColumns(), array_flip($fieldsNames));
    }