void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiMethodCallExpression comparingCall = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class); if (comparingCall == null) return; PsiMethodCallExpression thenComparingCall = PsiTreeUtil.getParentOfType(comparingCall, PsiMethodCallExpression.class); if (thenComparingCall == null) return; ExpressionUtils.bindCallTo(thenComparingCall, myTargetMethod); CommentTracker ct = new CommentTracker(); thenComparingCall.getArgumentList().replace(ct.markUnchanged(comparingCall.getArgumentList())); }