void (PsiVariable psiVariable) { PsiTypeElement psiTypeElement = psiVariable.getTypeElement(); if (psiTypeElement == null) { return; } PsiTypesUtil.replaceWithExplicitType(psiTypeElement); RemoveRedundantTypeArgumentsUtil.removeRedundantTypeArguments(psiVariable); executeAfterReplacing(psiVariable); CodeStyleManager.getInstance(psiVariable.getProject()).reformat(psiVariable); }