void (PsiMethodCallExpression changeCaseCall) { PsiExpression qualifierBeforeChangeCase = changeCaseCall.getMethodExpression().getQualifierExpression(); if (qualifierBeforeChangeCase == null) return; PsiMethodCallExpression equalsCall = ExpressionUtils.getCallForQualifier(changeCaseCall); if (equalsCall == null) return; if (myPlaceCaseEqualType == PlaceCaseEqualType.BOTH) { PsiExpression secondChangeCaseCall = PsiUtil.skipParenthesizedExprDown(equalsCall.getArgumentList().getExpressions()[0]); if (secondChangeCaseCall == null) return; PsiExpression secondQualifierBeforeChangeCase = ExpressionUtils.getEffectiveQualifier(((PsiMethodCallExpression)secondChangeCaseCall).getMethodExpression()); if (secondQualifierBeforeChangeCase == null) return; CommentTracker ct = new CommentTracker(); ct.replaceAndRestoreComments(secondChangeCaseCall, secondQualifierBeforeChangeCase); } ExpressionUtils.bindCallTo(equalsCall, EQUALS_IGNORE_CASE); CommentTracker ct = new CommentTracker(); ct.replaceAndRestoreComments(changeCaseCall, qualifierBeforeChangeCase); }