void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiMethodCallExpression call = ObjectUtils.tryCast(element, PsiMethodCallExpression.class); if (call == null) return; final PsiExpressionList argList = call.getArgumentList(); final PsiExpression[] args = argList.getExpressions(); if (args.length != 1) return; CommentTracker commentTracker = new CommentTracker(); commentTracker.replaceAndRestoreComments(element, commentTracker.text(args[0])); }