void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof PsiNewExpression newExpression)) return; final PsiExpressionList argList = newExpression.getArgumentList(); if (argList == null) return; final PsiExpression[] args = argList.getExpressions(); if (args.length != 1) return; CommentTracker commentTracker = new CommentTracker(); commentTracker.replace(newExpression, args[0]); }