void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (!(element instanceof PsiNewExpression newExpression)) { return; } final PsiArrayInitializerExpression arrayInitializer = newExpression.getArrayInitializer(); if (arrayInitializer == null) { return; } PsiExpression target = newExpression; while(target.getParent() instanceof PsiParenthesizedExpression) { target = (PsiExpression)target.getParent(); } new CommentTracker().replaceAndRestoreComments(target, arrayInitializer); }