private function reduceIndentationLevel(int $indentationLevel, array $tokensInLine): int
    {
        $raisingIndentation = [
            TokenInterface::TYPE_BRACE_CLOSE,
        ];

        if ($this->indentConditions) {
            $raisingIndentation[] = TokenInterface::TYPE_CONDITION_END;
        }

        foreach ($tokensInLine as $token) {
            if (in_array($token->getType(), $raisingIndentation)) {
                if ($token->getType() === TokenInterface::TYPE_CONDITION_END) {
                    $this->insideCondition = false;
                }
                return $indentationLevel - 1;
            }
        }

        return $indentationLevel;
    }