public function choosePlural($amount, array $variants)
    {
        if (sizeof($variants) < 3) {
            throw new \InvalidArgumentException('Incorrect values length (must be 3)');
        }

        $amount = abs($amount);
        $mod10 = $amount % 10;
        $mod100 = $amount % 100;

        if ($mod10 == 1 && $mod100 != 11) {
            $variant = 0;
        } elseif ($mod10 >= 2 && $mod10 <= 4 && !($mod100 > 10 && $mod100 < 20)) {
            $variant = 1;
        } else {
            $variant = 2;
        }

        return $variants[$variant];
    }