return new TypeConversionDescriptor("$qualifier$", boxedTypeName + ".valueOf($qualifier$)");
}
}
}
else if (from instanceof PsiClassType && to instanceof PsiPrimitiveType) {
<BUG>if (!PsiUtil.getLanguageLevel(context).hasEnumKeywordAndAutoboxing()) {
final String boxedTypeName = ((PsiPrimitiveType)to).getBoxedTypeName();</BUG>
if (Comparing.strEqual(boxedTypeName, from.getCanonicalText())) {
return new TypeConversionDescriptor("$qualifier$", "($qualifier$)." + to.getCanonicalText() + "Value()");
}

return new TypeConversionDescriptor("$qualifier$", boxedTypeName + ".valueOf($qualifier$)");
}
}
}
else if (from instanceof PsiClassType && to instanceof PsiPrimitiveType) {
if (!PsiUtil.isLanguageLevel5OrHigher(context)) {
final String boxedTypeName = ((PsiPrimitiveType)to).getBoxedTypeName();
if (Comparing.strEqual(boxedTypeName, from.getCanonicalText())) {
return new TypeConversionDescriptor("$qualifier$", "($qualifier$)." + to.getCanonicalText() + "Value()");
