PsiType (@NotNull PsiType type) { if (type instanceof PsiPrimitiveType) return type; if (type instanceof PsiClassType) { type = PsiPrimitiveType.getUnboxedType(type); LOG.assertTrue(type != null); return type; } LOG.error("Invalid type for unboxing "+type); return type; }