void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { CommentTracker ct = new CommentTracker(); final String replacementText = String.format("new %s[]{%s}", myTypeName, ct.text(element)); ct.replaceAndRestoreComments(element, replacementText); }