void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { final PsiNewExpression newExpression = PsiTreeUtil.getParentOfType(RemoveRedundantTypeArgumentsUtil.replaceExplicitWithDiamond(element), PsiNewExpression.class); if (newExpression != null) { CodeStyleManager.getInstance(project).reformat(newExpression); } }