static function loadRelatedLexems($map) { $results = array(); foreach ($map as $type => $lexemIds) { if ($type) { $results[$type] = Lexem::loadByIds(StringUtil::explode(',', $lexemIds)); } } return $results; }