void (@NotNull Project project, @NotNull PsiElement element, @NotNull ModPsiUpdater updater) { PsiTypeElement typeElement = tryCast(element, PsiTypeElement.class); if (typeElement == null) return; PsiLocalVariable variable = tryCast(typeElement.getParent(), PsiLocalVariable.class); if (variable == null) return; PsiExpression initializer = variable.getInitializer(); if (initializer != null) { tryReplaceStaticCall(initializer); } PsiType type = variable.getType(); String boxedType = type.getCanonicalText(); String unboxedType = PsiTypesUtil.unboxIfPossible(boxedType); if (unboxedType.equals(boxedType)) return; PsiElement codeBlock = PsiUtil.getVariableCodeBlock(variable, null); if (codeBlock == null) return; codeBlock.accept(new UnboxingVisitor(variable)); new CommentTracker().replaceAndRestoreComments(typeElement, unboxedType); }