void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiMethodCallExpression call = PsiTreeUtil.getParentOfType(element, PsiMethodCallExpression.class); if (call == null) return; PsiExpression arg = ArrayUtil.getFirstElement(call.getArgumentList().getExpressions()); if (arg == null) return; PsiClassObjectAccessExpression qualifier = tryCast(PsiUtil.skipParenthesizedExprDown(call.getMethodExpression().getQualifierExpression()), PsiClassObjectAccessExpression.class); if (qualifier == null) return; CommentTracker ct = new CommentTracker(); ct.replaceAndRestoreComments(call, createReplacement(ct.text(arg), ct.text(qualifier.getOperand()))); }