void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { assert element instanceof GrTypeElement : element; GrTypeElement typeElement = (GrTypeElement)element; final PsiType type = typeElement.getType(); if (!(type instanceof PsiPrimitiveType)) return; final PsiClassType boxed = ((PsiPrimitiveType)type).getBoxedType(typeElement); if (boxed == null) return; final GrTypeElement newTypeElement = GroovyPsiElementFactory.getInstance(project).createTypeElement(boxed); final PsiElement replaced = typeElement.replace(newTypeElement); JavaCodeStyleManager.getInstance(project).shortenClassReferences(replaced); }