Ported 'ConvertIfStatementToConditionalTernaryExpressionAction'.