void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { PsiNewExpression newExpression = PsiTreeUtil.getParentOfType(startElement, PsiNewExpression.class); if (newExpression == null) return; PsiElement result = new CommentTracker().replaceAndRestoreComments(newExpression, myReplacementText); RemoveRedundantTypeArgumentsUtil.removeRedundantTypeArguments(result); JavaCodeStyleManager.getInstance(project).shortenClassReferences(result); }