void (@NotNull Project project, @NotNull PsiElement startElement, @NotNull ModPsiUpdater updater) { PsiJavaCodeReferenceElement element = ObjectUtils.tryCast(startElement, PsiJavaCodeReferenceElement.class); if (element == null) return; PsiReferenceParameterList parameterList = element.getParameterList(); if (parameterList == null) return; RemoveRedundantTypeArgumentsUtil.replaceExplicitWithDiamond(parameterList); }