void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { if (element instanceof PsiArrayInitializerExpression arrayInitializerExpression) { final PsiType type = arrayInitializerExpression.getType(); if (type != null) { PsiReplacementUtil.replaceExpression(arrayInitializerExpression, "new " + TypeConversionUtil.erasure(type).getCanonicalText() + arrayInitializerExpression.getText()); } } }