if (typeCastCandidates[i]) {
PsiCallExpression newCall = (PsiCallExpression)expression.copy();
final PsiExpressionList argList = newCall.getArgumentList();
LOG.assertTrue(argList != null);
PsiExpression[] newArgs = argList.getExpressions();
<BUG>PsiTypeCastExpression castExpression = (PsiTypeCastExpression)deParenthesize(newArgs[i]);
</BUG>
PsiExpression castOperand = castExpression.getOperand();
if (castOperand == null) return;
castExpression.replace(castOperand);

if (typeCastCandidates[i]) {
PsiCallExpression newCall = (PsiCallExpression)expression.copy();
final PsiExpressionList argList = newCall.getArgumentList();
LOG.assertTrue(argList != null);
PsiExpression[] newArgs = argList.getExpressions();
PsiTypeCastExpression castExpression = (PsiTypeCastExpression)PsiUtil.deparenthesizeExpression(newArgs[i]);
PsiExpression castOperand = castExpression.getOperand();
if (castOperand == null) return;
castExpression.replace(castOperand);
