public static function replace(array $tokens, $newTable) {
        HashMap::assert($tokens, 'tokens');

        $operation = SqlOperation::create($tokens);
        $firstKey  = $operation === SqlOperations::DELETE || $operation === SqlOperations::SELECT ? 'FROM' : strtoupper($operation);

        $tokens[$firstKey][$operation === SqlOperations::INSERT ? 1 : 0]['no_quotes']['parts'][0] = $newTable;

        return $tokens;
    }