String () { final PsiPackage psiPackage = (PsiPackage)element; final String oldName = psiPackage.getQualifiedName(); final String newName = super.getNewName(); if (!Comparing.strEqual(StringUtil.getPackageName(oldName), StringUtil.getPackageName(newName))) { return newName; } return StringUtil.getShortName(newName); }